diff --git a/collaborators.md b/collaborators.md
index 855b1f3..5fadf17 100644
--- a/collaborators.md
+++ b/collaborators.md
@@ -3,5 +3,5 @@
simplify-geojson is only possible due to the excellent work of the following collaborators:
diff --git a/package.json b/package.json
index ce06296..f24588c 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"simplify-geometry": "0.0.2"
},
"devDependencies": {
- "standard": "^6.0.4",
+ "standard": "^8.3.0",
"tape": "^4.4.0"
},
"homepage": "https://github.com/maxogden/simplify-geojson",
diff --git a/readme.md b/readme.md
index 311a446..e8473d2 100644
--- a/readme.md
+++ b/readme.md
@@ -1,13 +1,22 @@
# simplify-geojson
-Apply [Ramer–Douglas–Peucker](https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm) line simplification to [GeoJSON](http://www.geojson.org/) features or feature collections in JS or on the CLI. This module uses https://github.com/seabre/simplify-geometry for the simplification and wraps it in a interface for easily simplifying GeoJSON.
+Apply [Ramer–Douglas–Peucker](https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm) line simplification to [GeoJSON](http://www.geojson.org/) features or feature collections in JS or on the CLI.
[![NPM](https://nodei.co/npm/simplify-geojson.png)](https://nodei.co/npm/simplify-geojson/)
+This module uses https://github.com/seabre/simplify-geometry for the simplification and wraps it in a interface for easily simplifying GeoJSON.
+
+## Install
+
+```
+npm install simplify-geojson
+```
+
+## Usage
+
### CLI
```sh
-npm install simplify-geojson -g
cat data.geojson | simplify-geojson -t 0.01
```
@@ -30,7 +39,7 @@ var simplified = simplify(geojson, tolerance)
All segments in any of the supported types will be simplified (including holes in polygons, for instance).
-## examples
+## Examples
Convert a CSV with lat/lon columns into geojson, then simplify that geojson, then open it in [geojson.io](http://geojson.io/) (CSV is from my GPS logger and was my bike commute this morning):
@@ -50,6 +59,10 @@ curl https://rawgit.com/johan/world.geo.json/master/countries/USA/AK.geo.json |
wc -l
```
+## Contributing
+
+Contributors welcome! Please read the [contributing guidelines](contributing.md) before getting started.
+
## License
-BSD
+[BSD-2-Clause](https://spdx.org/licenses/BSD-2-Clause.html)
diff --git a/test.js b/test.js
index 7b96d6e..f339418 100644
--- a/test.js
+++ b/test.js
@@ -1,9 +1,9 @@
var test = require('tape')
var fs = require('fs')
var concat = require('concat-stream')
-var child_process = require('child_process')
-var spawn = child_process.spawn
-var exec = child_process.exec
+var proc = require('child_process')
+var spawn = proc.spawn
+var exec = proc.exec
var simplify = require('./')
test('FeatureCollection w/ a LineString in it', function (t) {
@@ -84,7 +84,7 @@ test('curl from alaska example test', function (t) {
t.plan(1)
var cmd = 'curl -s https://rawgit.com/johan/world.geo.json/master/countries/USA/AK.geo.json | '
- cmd += 'simplify-geojson -t 0.01 | '
+ cmd += './cli.js -t 0.01 | '
cmd += 'wc -l'
var proc = exec(cmd)