Socket
Socket
Sign inDemoInstall

turf

Package Overview
Dependencies
51
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.4.0

44

CONTRIBUTING.md

@@ -1,30 +0,24 @@

## Want to Contribute?
## How To Contribute
Pull requests, feature requests, comments on issues, testing, documentation, or any other type of support is welcome and encouraged. This is a big project, and I appreciate any help I can get. Let's go build a better geospatial engine for the web! Not sure where to start? Shoot me an email at morgan.herlocker [at] gmail.com or [@morganherlocker](https://twitter.com/morganherlocker).
- Most work happens in sub modules. These are modules prefixed with "turf-".
- If you would like to propose a new feature, open an issue in Turfjs/turf.
- Always include tests. We use [tape](https://github.com/substack/tape).
- Turf modules are small, containing a single exported function.
- GeoJSON is the lingua franca of Turf. It should be used as the data structure for anything that can be represented as geography.
- Avoid large dependencies at all costs.
- Turf is used in a wide range of places. Make sure that your code can run in the browser (ie: don't make calls to external services, don't hit the filesystem, etc.).
**A few notes before diving in:**
## Structure of a turf module
- The focus of the project is on building a core geospatial engine. Vendor specific stuff belongs in a seperate module.
- Geojson is the primary format. Topojson can be used as an intermediate format.
- No pull requests will be accepted that provide only style changes.
- Never add an external dependency unless you absolutely have to. Even then, please ask first, because there may be a work around.
- Do not make calls to web services.
- Simplicity is the name of the game. Every feature should be a simple file in /lib with a corresponding file in /test. Reference the new module in index.js and you are all set.
- Testing is absolutely required 100% of the time. Look at the existing tests for examples.
- This is a functional library. Ensure that your functions never have side effects.
- **Always create an issue before starting a new feature. This will allow us to discuss how something is being implemented and integrated. Turned down pull requests are no fun for anyone.**
## Development
### Run Tests
```shell
cd test
mocha .
```
### Build
```shell
sh build
turf-hello
|
|-tests
|
|-fixtures
|
|-points.geojson
|-test.js
|-index.js
|-README.md
```

@@ -52,5 +52,3 @@ module.exports = {

tin: require('turf-tin'),
union: require('turf-union'),
bearing: require('turf-bearing'),
destination: require('turf-destination')
union: require('turf-union')
}
{
"name": "turf",
"version": "0.3.0",
"version": "0.4.0",
"description": "a node.js library for performing geospatial operations with geojson",

@@ -46,61 +46,59 @@ "main": "index.js",

"dependencies": {
"turf-aggregate": "0.0.3",
"turf-average": "0.0.2",
"turf-bbox-polygon": "^0.1.1",
"turf-bearing": "0.0.2",
"turf-aggregate": "0.1.1",
"turf-average": "0.1.0",
"turf-bbox-polygon": "^0.1.5",
"turf-bezier": "0.0.0",
"turf-buffer": "0.0.2",
"turf-center": "^0.1.0",
"turf-centroid": "^0.1.1",
"turf-combine": "0.1.0",
"turf-concave": "0.0.1",
"turf-convex": "0.0.1",
"turf-count": "0.0.4",
"turf-destination": "0.0.5",
"turf-deviation": "0.0.2",
"turf-distance": "^0.1.2",
"turf-donuts": "0.0.2",
"turf-buffer": "0.1.0",
"turf-center": "^0.1.1",
"turf-centroid": "^0.1.2",
"turf-combine": "0.1.1",
"turf-concave": "0.1.1",
"turf-convex": "0.1.1",
"turf-count": "0.1.0",
"turf-deviation": "0.1.0",
"turf-distance": "^0.1.5",
"turf-donuts": "0.1.0",
"turf-envelope": "~0.1.1",
"turf-erase": "0.1.3",
"turf-explode": "^0.1.2",
"turf-extent": "^0.1.2",
"turf-explode": "^0.1.3",
"turf-extent": "^0.1.4",
"turf-featurecollection": "~0.1.0",
"turf-filter": "^0.1.1",
"turf-flip": "0.1.0",
"turf-grid": "0.0.2",
"turf-inside": "^0.1.3",
"turf-filter": "^0.1.2",
"turf-flip": "0.1.2",
"turf-grid": "0.1.0",
"turf-inside": "^0.1.4",
"turf-intersect": "0.0.0",
"turf-is-clockwise": "0.0.2",
"turf-isobands": "0.1.0",
"turf-isolines": "0.1.0",
"turf-jenks": "0.1.0",
"turf-is-clockwise": "0.1.2",
"turf-isobands": "0.1.1",
"turf-isolines": "0.1.1",
"turf-jenks": "0.1.1",
"turf-linestring": "^0.1.1",
"turf-max": "0.0.3",
"turf-median": "0.0.2",
"turf-max": "0.1.2",
"turf-median": "0.1.1",
"turf-merge": "0.0.2",
"turf-midpoint": "^0.1.2",
"turf-min": "0.0.2",
"turf-nearest": "^0.1.1",
"turf-planepoint": "0.0.2",
"turf-point": "^0.1.1",
"turf-midpoint": "^0.1.3",
"turf-min": "0.1.2",
"turf-nearest": "^0.1.3",
"turf-planepoint": "0.1.0",
"turf-point": "^0.1.6",
"turf-polygon": "^0.1.1",
"turf-quantile": "0.0.4",
"turf-reclass": "0.0.2",
"turf-remove": "^0.1.1",
"turf-sample": "^0.1.1",
"turf-quantile": "0.1.1",
"turf-reclass": "0.1.1",
"turf-remove": "^0.1.2",
"turf-sample": "^0.1.2",
"turf-simplify": "0.0.0",
"turf-size": "^0.2.0",
"turf-square": "^0.1.2",
"turf-sum": "0.0.2",
"turf-tag": "~0.1.1",
"turf-tin": "0.0.2",
"turf-size": "^0.1.3",
"turf-square": "^0.1.3",
"turf-sum": "0.1.2",
"turf-tag": "~0.1.2",
"turf-tin": "0.1.0",
"turf-union": "0.0.0",
"turf-variance": "0.0.2",
"turf-within": "^0.1.1"
"turf-variance": "0.1.2",
"turf-within": "^0.1.2"
},
"devDependencies": {
"browserify": "~4.1.8",
"tape": "^2.13.2",
"uglify-js": "~2.4.13"
"browserify": "~5.10.0",
"tape": "^2.14.0",
"uglify-js": "~2.4.15"
}
}

@@ -86,6 +86,2 @@ ![turf](https://raw.githubusercontent.com/Turfjs/turf/9a1d5e8d99564d4080f1e2bf1517ed41d18012fa/logo.png)

[![Build Status](https://travis-ci.org/Turfjs/turf-bearing.svg?branch=master)](https://travis-ci.org/Turfjs/turf-bearing) [bearing](https://github.com/Turfjs/turf-bearing)
[![Build Status](https://travis-ci.org/Turfjs/turf-destination.svg?branch=master)](https://travis-ci.org/Turfjs/turf-destination) [destination](https://github.com/Turfjs/turf-destination)
####interpolation

@@ -157,1 +153,5 @@ [![Build Status](https://travis-ci.org/Turfjs/turf-tin.svg?branch=master)](https://travis-ci.org/Turfjs/turf-tin) [tin](https://github.com/Turfjs/turf-tin)

[![Build Status](https://travis-ci.org/Turfjs/turf-isClockwise.svg?branch=master)](https://travis-ci.org/Turfjs/turf-isClockwise) [isClockwise](https://github.com/Turfjs/turf-isClockwise)
---
Created by [@morganherlocker](https://twitter.com/morganherlocker) :)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc