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

turf-reclass

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-reclass - npm Package Compare versions

Comparing version 0.0.2 to 0.1.1

4

package.json
{
"name": "turf-reclass",
"version": "0.0.2",
"version": "0.1.1",
"description": "turf reclass module",

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

"devDependencies": {
"tape": "^2.12.3"
"tape": "^2.13.4"
},

@@ -29,0 +29,0 @@ "dependencies": {

@@ -7,3 +7,26 @@ turf-reclass

###Install
```sh
npm install turf-reclass
```
###Parameters
|name|description|
|---|---|
|fc|featurcollection to transform|
|inField|field to map|
|outField|new field|
|translations|an array of tanslations like: [[0, 20, 1], [20, 40, 2], ... [60, Infinity, 4]]|
###Usage
```js
reclass(pts, inField, outField, translations)
```
###Example
```js
var reclass = require('turf-reclass')

@@ -10,0 +33,0 @@ var fs = require('fs')

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