GT2/GT2-Android/node_modules/ipaddr.js/package.json

99 lines
11 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "ipaddr.js@1.5.2",
"scope": null,
"escapedName": "ipaddr.js",
"name": "ipaddr.js",
"rawSpec": "1.5.2",
"spec": "1.5.2",
"type": "version"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/proxy-addr"
]
],
"_from": "ipaddr.js@1.5.2",
"_id": "ipaddr.js@1.5.2",
"_inCache": true,
"_location": "/ipaddr.js",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/ipaddr.js-1.5.2.tgz_1503546462209_0.10381372715346515"
},
"_npmUser": {
"name": "whitequark",
"email": "whitequark@whitequark.org"
},
"_npmVersion": "1.4.21",
"_phantomChildren": {},
"_requested": {
"raw": "ipaddr.js@1.5.2",
"scope": null,
"escapedName": "ipaddr.js",
"name": "ipaddr.js",
"rawSpec": "1.5.2",
"spec": "1.5.2",
"type": "version"
},
"_requiredBy": [
"/proxy-addr"
],
"_resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.5.2.tgz",
"_shasum": "d4b505bde9946987ccf0fc58d9010ff9607e3fa0",
"_shrinkwrap": null,
"_spec": "ipaddr.js@1.5.2",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/proxy-addr",
"author": {
"name": "whitequark",
"email": "whitequark@whitequark.org"
},
"bugs": {
"url": "https://github.com/whitequark/ipaddr.js/issues"
},
"dependencies": {},
"description": "A library for manipulating IPv4 and IPv6 addresses in JavaScript.",
"devDependencies": {
"coffee-script": "~1.12.6",
"nodeunit": ">=0.8.2 <0.8.7",
"uglify-js": "~3.0.19"
},
"directories": {
"lib": "./lib"
},
"dist": {
"shasum": "d4b505bde9946987ccf0fc58d9010ff9607e3fa0",
"tarball": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.5.2.tgz"
},
"engines": {
"node": ">= 0.10"
},
"gitHead": "8f6e21058792cf6e38c6f461219fb25f0caecf27",
"homepage": "https://github.com/whitequark/ipaddr.js#readme",
"keywords": [
"ip",
"ipv4",
"ipv6"
],
"license": "MIT",
"main": "./lib/ipaddr",
"maintainers": [
{
"name": "whitequark",
"email": "whitequark@whitequark.org"
}
],
"name": "ipaddr.js",
"optionalDependencies": {},
"readme": "# ipaddr.js — an IPv6 and IPv4 address manipulation library [![Build Status](https://travis-ci.org/whitequark/ipaddr.js.svg)](https://travis-ci.org/whitequark/ipaddr.js)\n\nipaddr.js is a small (1.9K minified and gzipped) library for manipulating\nIP addresses in JavaScript environments. It runs on both CommonJS runtimes\n(e.g. [nodejs]) and in a web browser.\n\nipaddr.js allows you to verify and parse string representation of an IP\naddress, match it against a CIDR range or range list, determine if it falls\ninto some reserved ranges (examples include loopback and private ranges),\nand convert between IPv4 and IPv4-mapped IPv6 addresses.\n\n[nodejs]: http://nodejs.org\n\n## Installation\n\n`npm install ipaddr.js`\n\nor\n\n`bower install ipaddr.js`\n\n## API\n\nipaddr.js defines one object in the global scope: `ipaddr`. In CommonJS,\nit is exported from the module:\n\n```js\nvar ipaddr = require('ipaddr.js');\n```\n\nThe API consists of several global methods and two classes: ipaddr.IPv6 and ipaddr.IPv4.\n\n### Global methods\n\nThere are three global methods defined: `ipaddr.isValid`, `ipaddr.parse` and\n`ipaddr.process`. All of them receive a string as a single parameter.\n\nThe `ipaddr.isValid` method returns `true` if the address is a valid IPv4 or\nIPv6 address, and `false` otherwise. It does not throw any exceptions.\n\nThe `ipaddr.parse` method returns an object representing the IP address,\nor throws an `Error` if the passed string is not a valid representation of an\nIP address.\n\nThe `ipaddr.process` method works just like the `ipaddr.parse` one, but it\nautomatically converts IPv4-mapped IPv6 addresses to their IPv4 counterparts\nbefore returning. It is useful when you have a Node.js instance listening\non an IPv6 socket, and the `net.ivp6.bindv6only` sysctl parameter (or its\nequivalent on non-Linux OS) is set to 0. In this case, you can accept IPv4\nconnections on your IPv6-only socket, but the remote address will be mangled.\nUse `ipaddr.process` method to automatically demangle it.\n\n### Object representation\n\nParsing methods return an object which descends from `ipaddr.IPv6` or\n`ipaddr.IPv4`. These objects share some properties, but most of them differ.\n\n#### Shared properties\n\nOne can determine the type of address by calling `addr.kind()`. It will return\neither `\"ipv6\"` or `\"ipv4\"`.\n\nAn address can be converted back to its string representation with `addr.toString()`.\nNote that this method:\n * does not return the original string used to create the object (in fact, there is\n no way of getting that string)\n * returns a compact representation (when it is applicable)\n\nA `match(range, bits)` method can be used to check if the address falls into a\ncertain CIDR range.\nNote that an address can be (obviously) matched only against an address of the same type.\n\nFor example:\n\n```js\nvar addr = ipaddr.parse(\"2001:db8:1234::1\");\nvar range = ipaddr.parse(\"2001:db8::\");\n\naddr.match(range, 32); // => true\n```\n\nAlternatively, `match` can also be called as `match([range, bits])`. In this way,\nit can be used together with the `parseCIDR(string)` method, which parses an IP\naddress together with a CIDR range.\n\nFor example:\n\n```js\nvar addr = ipaddr.parse(\"2001:db8:1234::1\");\n\naddr.match(ipaddr.parseCIDR(\"2001:db8::/32\")); // => true\n```\n\nA `range()` method returns one of predefined names for several special ranges defined\nby IP protocols. The exact names (and their respective CIDR ranges) can be looked up\nin the source: [IPv6 ranges] and [IPv4 ranges]. Some common ones include `\"unicast\"`\n(the default one) and `\"reserved\"`.\n\nYou can match against your own range list by using\n`ipaddr.subnetMatch(address, rangeList, defaultName)` method. It can work with a mix of IPv6 or IPv4 addresses, and accepts a name-to-subnet map as the range list. For example:\n\n```js\nvar rangeList = {\n documentationOnly: [ ipaddr.parse('2001:db8::'), 32 ],\n tunnelProviders: [\n [ ipaddr.parse('2001:470::'), 32 ], // he.net\n [ ipaddr.parse('2001:5c0::'), 32 ] /
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/whitequark/ipaddr.js.git"
},
"scripts": {
"test": "cake build test"
},
"version": "1.5.2"
}