Socket
Socket
Sign inDemoInstall

@turf/random

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/random - npm Package Compare versions

Comparing version 3.0.15 to 3.0.16

8

package.json
{
"name": "@turf/random",
"version": "3.0.15",
"version": "3.0.16",
"description": "generate random features",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "git@github.com:Turfjs/turf-random.git"
"url": "git://github.com/Turfjs/turf.git"
},

@@ -21,5 +21,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/Turfjs/turf-random/issues"
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf-random",
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {

@@ -26,0 +26,0 @@ "benchmark": "^1.0.0",

@@ -1,6 +0,6 @@

# turf-random
# @turf/random
# random
Generates random [GeoJSON](GeoJSON) data, including [Points](Point) and [Polygons](Polygon), for testing
Generates random [GeoJSON](GeoJSON) data, including [Points](http://geojson.org/geojson-spec.html#point) and [Polygons](http://geojson.org/geojson-spec.html#polygon), for testing
and experimentation.

@@ -14,4 +14,4 @@

- `options.bbox` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)>** a bounding box inside of which geometries
are placed. In the case of [Point](Point) features, they are guaranteed to be within this bounds,
while [Polygon](Polygon) features have their centroid within the bounds.
are placed. In the case of [Point](http://geojson.org/geojson-spec.html#point) features, they are guaranteed to be within this bounds,
while [Polygon](http://geojson.org/geojson-spec.html#polygon) features have their centroid within the bounds.
- `options.num_vertices` **\[[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** options.vertices the number of vertices added

@@ -39,3 +39,3 @@ to polygon features. (optional, default `10`)

Returns **FeatureCollection** generated random features
Returns **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)** generated random features

@@ -54,3 +54,3 @@ ---

```sh
$ npm install turf-random
$ npm install @turf/random
```

@@ -61,3 +61,3 @@

```sh
$ npm install turf
$ npm install @turf/turf
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc