Skip to content

Commit

Permalink
Chore(main): Rewrite example to promise
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Oct 17, 2018
1 parent cfe69e1 commit 974b106
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ const geoip = require ('geoip2ws') ({
service: 'city'
});

geoip ('me', console.log);
geoip ('me')
.then (console.log)
.catch (console.error)
;

0 comments on commit 974b106

Please sign in to comment.