{"_id":"random-ipv4","_rev":"2906397","name":"random-ipv4","description":"Return a random ipv4 address.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"bubkoo","email":""}],"time":{"modified":"2022-12-14T07:20:36.000Z","created":"2016-04-11T07:28:07.557Z","1.0.2":"2016-04-25T09:24:50.234Z","1.0.1":"2016-04-24T13:38:44.726Z","1.0.0":"2016-04-15T18:03:54.533Z","0.0.0":"2016-04-11T07:28:07.557Z"},"users":{},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-ipv4.git"},"versions":{"1.0.2":{"name":"random-ipv4","version":"1.0.2","description":"Return a random ipv4 address.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["ip","ipv4","ipv6","address","web","random","randomly","randomize","chance","test","dice","mock"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-ipv4.git"},"bugs":{"url":"https://github.com/mock-end/random-ipv4/issues"},"homepage":"https://github.com/mock-end/random-ipv4#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"clamp":"^1.0.1","random-natural":"^1.0.3"},"gitHead":"19a3233b7b1af22c7271fa5ebc481c95157ab37a","_id":"random-ipv4@1.0.2","_shasum":"ce68bad9c8178cf1d2438e46db2b687bb6894006","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"ce68bad9c8178cf1d2438e46db2b687bb6894006","size":2629,"noattachment":false,"key":"/random-ipv4/-/random-ipv4-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-ipv4/download/random-ipv4-1.0.2.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-ipv4-1.0.2.tgz_1461576289631_0.16072466084733605"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T07:23:29.693Z","publish_time":1461576290234,"_cnpm_publish_time":1461576290234},"1.0.1":{"name":"random-ipv4","version":"1.0.1","description":"Return a random ipv4 address.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["ip","ipv4","ipv6","address","web","random","randomly","randomize","chance","test","dice","mock"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-ipv4.git"},"bugs":{"url":"https://github.com/mock-end/random-ipv4/issues"},"homepage":"https://github.com/mock-end/random-ipv4#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"random-natural":"^1.0.2"},"gitHead":"0b17e1716d8d8961e60f840b4872474961b8ccef","_id":"random-ipv4@1.0.1","_shasum":"044ef457ca7a954a3b1f8dd58421f3ba6c7b1f7d","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"044ef457ca7a954a3b1f8dd58421f3ba6c7b1f7d","size":2613,"noattachment":false,"key":"/random-ipv4/-/random-ipv4-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-ipv4/download/random-ipv4-1.0.1.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-ipv4-1.0.1.tgz_1461505121554_0.1124430422205478"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T07:23:28.835Z","publish_time":1461505124726,"_cnpm_publish_time":1461505124726},"1.0.0":{"name":"random-ipv4","version":"1.0.0","description":"Generate a random ipv4 address.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["ip","ipv4","ipv6","address","network","randomly","random","rand","generator","generate","gen"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-ipv4.git"},"bugs":{"url":"https://github.com/mock-end/random-ipv4/issues"},"homepage":"https://github.com/mock-end/random-ipv4#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"random-natural":"^1.0.0"},"gitHead":"ded6d79499d8c58f343a8dd2f9042f6b80c56254","_id":"random-ipv4@1.0.0","_shasum":"226a7d1b47b4acbed8f2b2add625d5bfbf88930a","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"226a7d1b47b4acbed8f2b2add625d5bfbf88930a","size":2827,"noattachment":false,"key":"/random-ipv4/-/random-ipv4-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-ipv4/download/random-ipv4-1.0.0.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-ipv4-1.0.0.tgz_1460743433761_0.16184024745598435"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T07:23:27.945Z","publish_time":1460743434533,"_cnpm_publish_time":1460743434533},"0.0.0":{"name":"random-ipv4","version":"0.0.0","description":"Generate a random ipv4.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bubkoo/random-ipv4.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com","url":"https://github.com/bubkoo"},"license":"MIT","bugs":{"url":"https://github.com/bubkoo/random-ipv4/issues"},"homepage":"https://github.com/bubkoo/random-ipv4#readme","gitHead":"acd9b3b66e4f01d49d9b49dc5c61fac92537db34","_id":"random-ipv4@0.0.0","_shasum":"e49c1f55bf744dc6269126538aa6c06b0126956e","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"e49c1f55bf744dc6269126538aa6c06b0126956e","size":1085,"noattachment":false,"key":"/random-ipv4/-/random-ipv4-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-ipv4/download/random-ipv4-0.0.0.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-ipv4-0.0.0.tgz_1460359685138_0.5782287553884089"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T07:23:27.057Z","publish_time":1460359687557,"_cnpm_publish_time":1460359687557}},"readme":"# random-ipv4\n\n> Return a random ipv4 address.\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-ipv4/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/mock-end/random-ipv4/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-ipv4)\n[![coverage:?](https://img.shields.io/coveralls/mock-end/random-ipv4/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-ipv4)\n\n\n## Install\n\n```\n$ npm install --save random-ipv4 \n```\n\n## Usage\n\n> For more use-cases see the [tests](https://github.com/mock-end/random-ipv4/blob/master/test/spec/index.js)\n\n```js\nvar randomIpv4 = require('random-ipv4');\n\n// API\n// - randomIpv4(schema[, options]);\n\nrandomIpv4();\n// => 193.31.235.41\n\nrandomIpv4('127.0.{token}.1', {\n    token: {\n        min: 127,\n        max: 255\n    }\n});\n// => 127.0.216.1\n\nrandomIpv4('{token1}.{token2}.{token3}.{token4}', {\n    token1:{\n        min: 127,\n        max: 127\n    },\n    token2:{\n        min: 127,\n        max: 192\n    },\n    token3:{\n        min: 0,\n        max: 200\n    }\n});\n// => 127.188.153.3\n\n```\n\n**Note**:\n\n- `schema` - the ipv4 schema, default `'{token1}.{token2}.{token3}.{token4}'`.\n- `options` - options for every **token**, each token has `min` and `max` option, which both are from `0` to `255`.\n\n## Related\n\n- [random-ipv6](https://github.com/mock-end/random-ipv6) - Return a random ipv6 address.\n- [random-tld](https://github.com/mock-end/random-tld) - Return a random tld(Top Level Domain).\n- [random-domains](https://github.com/mock-end/random-domains) - Return a random domain.\n- [random-email](https://github.com/mock-end/random-email) - Return a random email.\n- [random-protocol](https://github.com/mock-end/random-protocol) - Return a random protocol.\n- [random-hashtag](https://github.com/mock-end/random-tld) - Return a random hashtag.\n- [random-uri](https://github.com/mock-end/random-uri.git) - Return a random url.\n- [random-avatar](https://github.com/mock-end/random-avatar) - Return a URL to a random avatar from Gravatar.\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/mock-end/random-ipv4/issues/new).\n","_attachments":{},"homepage":"https://github.com/mock-end/random-ipv4#readme","bugs":{"url":"https://github.com/mock-end/random-ipv4/issues"},"license":"MIT"}