work.suroh.tk/node_modules/dev-ip
suroh 410082595a init 11ty commit 2019-12-02 13:22:45 +01:00
..
lib init 11ty commit 2019-12-02 13:22:45 +01:00
test init 11ty commit 2019-12-02 13:22:45 +01:00
.jshintrc init 11ty commit 2019-12-02 13:22:45 +01:00
.npmignore init 11ty commit 2019-12-02 13:22:45 +01:00
.travis.yml init 11ty commit 2019-12-02 13:22:45 +01:00
LICENSE-MIT init 11ty commit 2019-12-02 13:22:45 +01:00
README.md init 11ty commit 2019-12-02 13:22:45 +01:00
example.js init 11ty commit 2019-12-02 13:22:45 +01:00
package.json init 11ty commit 2019-12-02 13:22:45 +01:00

README.md

dev-ip Build Status

Find a suitable IP host to view local websites on.

Command line

Install it globally to use on the command line:

sudo npm install -g dev-ip

then run:

dev-ip

"http://192.168.1.46"

In your project

npm install dev-ip

var devip = require('dev-ip');
devip(); // "192.168.1.76" or false if nothing found (ie, offline user)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Run lint & tests with gulp.

Release History

(Nothing yet)

License

Copyright (c) 2013 Shane Osbourne Licensed under the MIT license.