Skip to content

Commit

Permalink
Specify js snippet in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Aug 3, 2017
1 parent 360d943 commit e0efb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ localip(iface, function(err, res) {

You can also use it in sync mode:

```
```js
var iface = 'wlan0';
var localip = require('local-ip')(interface);
console.log('My local ip address on ' + iface + ' is ' + localip);
Expand Down

0 comments on commit e0efb18

Please sign in to comment.