{"name":"geojson-random","version":"0.5.0","description":"generate random geojson features","main":"index.js","bin":{"geojson-random":"geojson-random"},"scripts":{"test":"eslint . && tap test.js","release":"standard-version"},"repository":{"type":"git","url":"git+https://github.com/node-geojson/geojson-random.git"},"keywords":["geojson","random"],"author":{"name":"Tom MacWright"},"license":"ISC","bugs":{"url":"https://github.com/node-geojson/geojson-random/issues"},"homepage":"https://github.com/node-geojson/geojson-random","devDependencies":{"eslint":"^5.12.1","standard-version":"^4.0.0","tap":"^12.4.0"},"dependencies":{"from2":"^2.1.0","geojson-stream":"0.1.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"27f8e3b8692d9d3aea380ffca76d0cf82ebf7e52","_id":"geojson-random@0.5.0","_nodeVersion":"10.14.1","_npmVersion":"6.6.0","dist":{"integrity":"sha512-a4j6KJCC/ZhufwiXMxuoXrJiOxwwBQ0Y0DEcGmytnSJC11AkWHSKSFOw/ovh6QFp8n9XIDXhQXAvArRCvi2Y4A==","shasum":"e88de997ea6b94148c20e36a190412c4870b7bed","tarball":"http://registry-npm.ywwl.com/geojson-random/download/geojson-random-0.5.0.tgz","fileCount":9,"unpackedSize":125877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT/5lCRA9TVsSAnZWagAAzasP/11u7r+8TPBnXroQLGfy\nqyq/PovlquswcVY/axMGO1NN5KavW5XLNo2twWPML4SPOm7I1JazZ4cwdqAj\nBaOfRVAL/kccn5mkSc9v9W20QnHGRxdmdHLp+qEMCc8ozIvo7VPXlEt0Lcum\nNOsDEBqz4fxn6s6lK6HxR09y7iEW+BvNWUA5fOFgfJS5AFbKh/AZQaRGyzvZ\n8rFKn+KyoXXLKfTNskoDMUt9i4U6N0vAVTAcKc7RNeCP1IDmZNWA5f9VkC9e\naePs6v5BybprNAatWNbm8aRj5Wf10Y2XGm83HRcqFBeNiPVpgrkAQweOkIcH\n/ayQb/oSO1Vo/IPTTTgbSOJQVK0VrSJJbAU9fpQkM7ZoAkwmGmklrfuR04Zs\nwFYeXTSlfshjyiPRsZa78kMOVhZfGpCtdYUEl4J+UCPbAONH9U2JTA3H+Ns2\nGFCPMlUGhgNePpBqU5v1OmBbAkwNmSY2vlmW6CmbNxvNoDhl7RKbpoH3xuhn\nDemNs54IhTVIorFvVD/es6H4zjuagxg53PCfuy493k7jEsiNDEye5Ny8XgBj\nIOJduwuPceS4HU9+HhMPVdXLiVVOjIQJYgx2BptQJVoibqIzREEwaoVBbHLL\ntxY7s2JasUFhE6SvHjoui1p5+GV79dS0guZMxPtwfCSeoci+muuAzthBJbLR\nFwYn\r\n=2+aC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGWhNfqaVd9DS8VFiolzzGYwfd0vwxR7fRATspKhuO6wIhAIvRS51Y7k2pkFrW/HVTcD2e4L9ql4Y4l/4BRIRABFrY"}],"size":35652,"noattachment":false,"key":"/geojson-random/-/geojson-random-0.5.0.tgz"},"maintainers":[{"email":"tom@macwright.org","name":"tmcw"}],"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geojson-random_0.5.0_1548746340407_0.026081579010295952"},"_hasShrinkwrap":false,"readme":"# geojson-random\n\n[![CircleCI](https://circleci.com/gh/node-geojson/geojson-random.svg?style=svg)](https://circleci.com/gh/node-geojson/geojson-random)\n\nGenerate random [GeoJSON](http://geojson.org/) features.\n\nUsable in [node.js](http://nodejs.org/) and in browsers with [browserify](http://browserify.org/).\n\n    npm install -g geojson-random\n    geojson-random\n\n    # special fast-mode for points\n    geojson-random 10000 point-stream\n\n## api\n\n```js\nvar random = require('geojson-random');\n```\n\n### `random.point(count, bbox)`\n\nReturn `count` points wrapped in a FeatureCollection.\n\nAn optional `bbox` parameter should be an array of numbers representing\na [bbox](http://geojson.org/geojson-spec.html#bounding-boxes) in WSEN order,\nand if given, the point will reside within its bounds.\n\n### `random.position(bbox?)`\n\nReturn a single GeoJSON [Position](http://geojson.org/geojson-spec.html#positions)\nas a 2-element array of numbers in longitude, latitude order.\n\nAn optional `bbox` parameter should be an array of numbers representing\na [bbox](http://geojson.org/geojson-spec.html#bounding-boxes) in WSEN order,\nand if given, the position will reside within its bounds.\n\n### `random.polygon(count, num_vertices, max_radial_length, bbox)`\n\nReturn `count` polygons wrapped in a FeatureCollection.\n\n* `num_vertices` is default `10` and is how many coordinates each Polygon\n  will contain.\n* `max_radial_length` is the maximum number of decimal degrees latitude\n  or longitude that a vertex can reach out of the center of the Polygon.\n  Default is `10`.\n* `bbox` (Optional) Bounding box in [minX, minY, maxX, maxY] order.\n\n### `random.lineString(count, num_vertices, max_length, max_rotation, bbox)`\n\nReturn `count` line strings wrapped in a FeatureCollection.\n\n* `num_vertices` is default `10` and is how many coordinates each LineString\n  will contain.\n* `max_length` is the maximum number of decimal degrees that a vertex can be\n  from its predecessor\n  Default is `0.0001`.\n* `max_rotation` is the maximum number of radians that a line segment can turn\n  from the previous segment.\n  Default is `Math.PI / 8`.\n* `bbox` (Optional) Bounding box in [minX, minY, maxX, maxY] order. This\n  parameter is only applied to the starting point of the line.\n","publish_time":1548746340548,"_cnpm_publish_time":1548746340548,"dist-tags":{"latest":"0.5.0"}}