Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf-buffer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-buffer - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

.travis.yml

8

package.json
{
"name": "turf-buffer",
"version": "0.0.2",
"version": "0.1.0",
"description": "turf buffer module",

@@ -29,10 +29,10 @@ "main": "index.js",

"devDependencies": {
"tape": "^2.13.1"
"tape": "^2.13.3"
},
"dependencies": {
"jsts": "^0.13.4",
"turf-combine": "0.0.1",
"turf-combine": "0.1.0",
"turf-featurecollection": "^0.1.0",
"turf-polygon": "^0.1.0"
"turf-polygon": "^0.1.1"
}
}

@@ -7,3 +7,25 @@ turf-buffer

###Install
```sh
npm install turf-buffer
```
###Parameters
|name|description|
|---|---|
|feature|A Feature or FeatureCollection of any type|
|distance|Distance to draw the buffer|
|unit|'miles' or 'kilometers'|
###Usage
```js
buffer(feature, distance, unit)
```
###Example
```js
var buffer = require('turf-buffer')

@@ -18,2 +40,2 @@ var point = require('turf-point')

console.log(buffered)
```
```
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