2015-11-02 11:36:10 +01:00

52 lines
2.6 KiB
JSON

{
"name": "interface-addresses",
"version": "0.0.5",
"description": "get the private network ip address of the machine",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "make test"
},
"bin": {
"interface-addresses": "cli.js"
},
"keywords": [
"ip",
"address",
"network",
"private",
"os",
"dns"
],
"author": {
"name": "Noah Isaacson"
},
"license": "BSD",
"devDependencies": {
"should": "~1.2.2",
"mocha": "~1.12.0"
},
"dependencies": {
"should": "~1.2.2",
"optimist": "~0.6.0"
},
"repository": {
"type": "git",
"url": "git://github.com/nisaacson/interface-addresses.git"
},
"bugs": {
"url": "https://github.com/nisaacson/interface-addresses/issues"
},
"readme": "# Interface Addresses\n\n[![Build Status](https://travis-ci.org/nisaacson/interface-addresses.png)](https://travis-ci.org/nisaacson/interface-addresses)\n\nGet the IPv4 addresses of all network interfaces on a machine\n\n# Installation\n\n```bash\nnpm install -S interface-addresses\n```\n\n# Usage\n\nRequire the module and call it with no arguments. The returned `addresses` value will be an object where the key is the name of the interface and the value is the ip address\n\n```javascript\nvar inspect = require('eyespect').inspector()\nvar interfaceAddresses = require('interface-addresses')\nvar addresses = interfaceAddresses()\ninspect(addresses, 'network interface IPv4 addresses (non-internal only)')\n```\n\nIn the example above, addresses is an object that looks like the following\n\n```javascript\n{\n en1: '192.168.1.101',\n vnic0: '10.211.55.2',\n vnic1: '10.37.129.2',\n vboxnet0: '33.33.33.1'\n}\n```\n\nYou will need to install the `eyespect` module to run the example code above, which you can do using `npm`\n\n```bash\nnpm install -S eyespect\n```\n\n\n# CLI\n\nYou can also use interface-addresses as a command line tool. Currently you can only get the host for a single adapter adapater at a\ntime.\n\n## Example\n\nTo get the ip address for the `en0` adapter, execute the following\n\n```bash\nnpm install -g interface-addresses\ninterface-addresses --adapter \"en0\"\n```\n\n\n# Test\n\n```bash\n# install the development dependencies\nnpm install\n# run the tests\nnpm test\n```\n",
"readmeFilename": "README.md",
"homepage": "https://github.com/nisaacson/interface-addresses",
"_id": "interface-addresses@0.0.5",
"dist": {
"shasum": "857652cad341a1eb593f0f15eefd0757282f01c7"
},
"_from": "interface-addresses@*",
"_resolved": "https://registry.npmjs.org/interface-addresses/-/interface-addresses-0.0.5.tgz"
}