GT2/GT2-Android/node_modules/ip/package.json

108 lines
5.4 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "ip@^1.1.5",
"scope": null,
"escapedName": "ip",
"name": "ip",
"rawSpec": "^1.1.5",
"spec": ">=1.1.5 <2.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/pac-resolver"
]
],
"_from": "ip@>=1.1.5 <2.0.0",
"_id": "ip@1.1.5",
"_inCache": true,
"_location": "/ip",
"_nodeVersion": "7.0.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/ip-1.1.5.tgz_1488591504778_0.018333946587517858"
},
"_npmUser": {
"name": "indutny",
"email": "fedor@indutny.com"
},
"_npmVersion": "3.10.8",
"_phantomChildren": {},
"_requested": {
"raw": "ip@^1.1.5",
"scope": null,
"escapedName": "ip",
"name": "ip",
"rawSpec": "^1.1.5",
"spec": ">=1.1.5 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/pac-resolver",
"/socks"
],
"_resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz",
"_shasum": "bdded70114290828c0a039e72ef25f5aaec4354a",
"_shrinkwrap": null,
"_spec": "ip@^1.1.5",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/pac-resolver",
"author": {
"name": "Fedor Indutny",
"email": "fedor@indutny.com"
},
"bugs": {
"url": "https://github.com/indutny/node-ip/issues"
},
"dependencies": {},
"description": "[![](https://badge.fury.io/js/ip.svg)](https://www.npmjs.com/package/ip)",
"devDependencies": {
"jscs": "^2.1.1",
"jshint": "^2.8.0",
"mocha": "~1.3.2"
},
"directories": {},
"dist": {
"shasum": "bdded70114290828c0a039e72ef25f5aaec4354a",
"tarball": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz"
},
"gitHead": "43e442366bf5a93493c8c4c36736f87d675b0c3d",
"homepage": "https://github.com/indutny/node-ip",
"license": "MIT",
"main": "lib/ip",
"maintainers": [
{
"name": "bcbailey",
"email": "brad@memoryleak.org"
},
{
"name": "fedor.indutny",
"email": "fedor.indutny@gmail.com"
},
{
"name": "indexzero",
"email": "charlie.robbins@gmail.com"
},
{
"name": "indutny",
"email": "fedor@indutny.com"
},
{
"name": "mmalecki",
"email": "me@mmalecki.com"
}
],
"name": "ip",
"optionalDependencies": {},
"readme": "# IP \n[![](https://badge.fury.io/js/ip.svg)](https://www.npmjs.com/package/ip) \n\nIP address utilities for node.js\n\n## Installation\n\n### npm\n```shell\nnpm install ip\n```\n\n### git\n\n```shell\ngit clone https://github.com/indutny/node-ip.git\n```\n \n## Usage\nGet your ip address, compare ip addresses, validate ip addresses, etc.\n\n```js\nvar ip = require('ip');\n\nip.address() // my ip address\nip.isEqual('::1', '::0:1'); // true\nip.toBuffer('127.0.0.1') // Buffer([127, 0, 0, 1])\nip.toString(new Buffer([127, 0, 0, 1])) // 127.0.0.1\nip.fromPrefixLen(24) // 255.255.255.0\nip.mask('192.168.1.134', '255.255.255.0') // 192.168.1.0\nip.cidr('192.168.1.134/26') // 192.168.1.128\nip.not('255.255.255.0') // 0.0.0.255\nip.or('192.168.1.134', '0.0.0.255') // 192.168.1.255\nip.isPrivate('127.0.0.1') // true\nip.isV4Format('127.0.0.1'); // true\nip.isV6Format('::ffff:127.0.0.1'); // true\n\n// operate on buffers in-place\nvar buf = new Buffer(128);\nvar offset = 64;\nip.toBuffer('127.0.0.1', buf, offset); // [127, 0, 0, 1] at offset 64\nip.toString(buf, offset, 4); // '127.0.0.1'\n\n// subnet information\nip.subnet('192.168.1.134', '255.255.255.192')\n// { networkAddress: '192.168.1.128',\n// firstAddress: '192.168.1.129',\n// lastAddress: '192.168.1.190',\n// broadcastAddress: '192.168.1.191',\n// subnetMask: '255.255.255.192',\n// subnetMaskLength: 26,\n// numHosts: 62,\n// length: 64,\n// contains: function(addr){...} }\nip.cidrSubnet('192.168.1.134/26')\n// Same as previous.\n\n// range checking\nip.cidrSubnet('192.168.1.134/26').contains('192.168.1.190') // true\n\n\n// ipv4 long conversion\nip.toLong('127.0.0.1'); // 2130706433\nip.fromLong(2130706433); // '127.0.0.1'\n```\n\n### License\n\nThis software is licensed under the MIT License.\n\nCopyright Fedor Indutny, 2012.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to permit\npersons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/indutny/node-ip.git"
},
"scripts": {
"fix": "jscs lib/*.js test/*.js --fix",
"test": "jscs lib/*.js test/*.js && jshint lib/*.js && mocha --reporter spec test/*-test.js"
},
"version": "1.1.5"
}