Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafintosh/network-address
get the local network address of your machine
https://github.com/mafintosh/network-address
Last synced: 23 days ago
JSON representation
get the local network address of your machine
- Host: GitHub
- URL: https://github.com/mafintosh/network-address
- Owner: mafintosh
- License: mit
- Created: 2012-11-15T12:22:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-01-17T15:00:06.000Z (about 8 years ago)
- Last Synced: 2024-05-11T17:43:45.091Z (8 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 65
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-js - network-address
README
## network-address
get the local network address of your machine
```
npm install network-address
```[![build status](http://img.shields.io/travis/mafintosh/network-address.svg?style=flat)](http://travis-ci.org/mafintosh/network-address)
it is easy to use
``` js
var address = require('network-address')console.log(address()) // prints something like 192.168.3.102
console.log(address.ipv6()) // prints something like fc00::5137:ecb:55be:c2fc
```it is also available as a command line tool
```
npm install -g network-address
```you are now able to run `network-address` in your terminal