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

turf-jenks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-jenks - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.travis.yml

2

package.json
{
"name": "turf-jenks",
"version": "0.0.2",
"version": "0.0.3",
"description": "turf jenks module",

@@ -5,0 +5,0 @@ "main": "index.js",

turf-jenks
==========
[![Build Status](https://travis-ci.org/Turfjs/turf-jenks.svg?branch=master)](https://travis-ci.org/Turfjs/turf-jenks)
Takes a set of features, a property name, and the desired number of breaks and outputs an array of natural breaks. This classification can be used in the isolines function or the isobands function, or for theming.
```javascript
var jenks = require('turf-jenks')
var fs = require('fs')
var propertyName = 'elevation'
var num = 10
var pts = JSON.parse(js.readFileSync('/path/to/points.geojson'))
var jenked = jenks(pts, 'elevation', num, function(err, breaks){
console.log(jenked) // [ 11, 12, 18, 25, 29, 41, 50, 55, 76, 90, 143 ]
```
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