{"_id":"simplify-geometry","_rev":"7-bc7eeb6972e4bb011a28a55eb7de2082","name":"simplify-geometry","description":"Simplify geometry using the Ramer–Douglas–Peucker algorithm.","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"simplify-geometry","version":"0.0.1","description":"Simplify geometry using the Ramer–Douglas–Peucker algorithm.","main":"./lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/seabre/simplify-geometry.git"},"keywords":["geometry","Douglas–Peucker","simplify"],"author":{"name":"Sean Brewer","email":"sean@saidigital.co","url":"https://github.com/seabre"},"license":"MIT","devDependencies":{"mocha":"~1.12.0"},"_id":"simplify-geometry@0.0.1","dist":{"shasum":"69c5608306f1ee235e44e86ee8b161aa83d7f350","tarball":"https://registry.npmjs.org/simplify-geometry/-/simplify-geometry-0.0.1.tgz","integrity":"sha512-3K0gZdNhWPdg7JuDFrsuVRBmGc1xrS51vy25xx+eSkr0M4f1lxxM/QpNCP28f53GK6mvJ9spvnWBfGht1ODP2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCg9fVkqGhawVpAz4UNpk/K39fF9N7SynZ+TRJmYzCSdwIgB2qipR2NS/3HF+E2t67dwVBwNEwYAsRPsPmT0F0ENHs="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"seabre","email":"sean@saidigital.co"},"maintainers":[{"name":"seabre","email":"sean@saidigital.co"}]},"0.0.2":{"name":"simplify-geometry","version":"0.0.2","description":"Simplify geometry using the Ramer–Douglas–Peucker algorithm.","main":"./lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/seabre/simplify-geometry.git"},"keywords":["geometry","Douglas–Peucker","simplify"],"author":{"name":"Sean Brewer","email":"seabre986@gmail.com","url":"https://github.com/seabre"},"testling":{"browsers":["ie/6..latest","chrome/20..latest","firefox/10..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/4.2"],"harness":"mocha","files":"test/*.js"},"license":"MIT","devDependencies":{"mocha":"~1.12.0"},"gitHead":"8012a7fa35d16a9a47f08d440d564498fa3b11ab","bugs":{"url":"https://github.com/seabre/simplify-geometry/issues"},"homepage":"https://github.com/seabre/simplify-geometry","_id":"simplify-geometry@0.0.2","_shasum":"63797e676eae96835ace02bcd27d3e1af544f49c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"seabre","email":"seabre986@gmail.com"},"maintainers":[{"name":"seabre","email":"sean@saidigital.co"}],"dist":{"shasum":"63797e676eae96835ace02bcd27d3e1af544f49c","tarball":"https://registry.npmjs.org/simplify-geometry/-/simplify-geometry-0.0.2.tgz","integrity":"sha512-ZEyrplkqgCqDlL7V8GbbYgTLlcnNF+MWWUdy8s8ZeJru50bnI71rDew/I+HG36QS2mPOYAq1ZjwNXxHJ8XOVBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8JTDtvu0IGcAUATLnQ3bo8IfBi0HiK4cJVAgBpCn1XAIhANCA+UYixHmIrNk7jefxIcG5ryO6p3nHppdITvBSxepq"}]}}},"readme":"# simplify-geometry\n[![Build Status](https://travis-ci.org/seabre/simplify-geometry.png)](https://travis-ci.org/seabre/simplify-geometry)\n\n[![browser support](https://ci.testling.com/seabre/simplify-geometry.png)](https://ci.testling.com/seabre/simplify-geometry)\n\nSimplify geometry using the [Ramer–Douglas–Peucker algorithm](http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm).\n\nIf you need to simplify geometries, for instance reducing the number of points in a polygon, this will help you. You could use this in [Leaflet](https://github.com/Leaflet/Leaflet).\n\n## Node\n\n### Example\n\n```javascript\nvar simplify = require('simplify-geometry');\nvar linestring = [[0,0], [2.5,3], [5,0]];\n\nconsole.log(simplify(linestring, 2.9));\nconsole.log(simplify(linestring, 3));\n```\n\nOutput:\n```javascript\n[ [ 0, 0 ], [ 2.5, 3 ], [ 5, 0 ] ]\n[ [ 0, 0 ], [ 5, 0 ] ]\n```\n\n## Browser\n\nBrowser builds are built with [Browserify](https://github.com/substack/node-browserify), and tested in various browsers with [Testling](https://ci.testling.com/):\n\n* https://github.com/seabre/simplify-geometry/blob/master/simplifygeometry-0.0.2.js\n* https://github.com/seabre/simplify-geometry/blob/master/simplifygeometry-0.0.2.min.js\n\nYou can see an example here, which uses Leaflet: http://seabre.github.io/simplify-geometry/\n\nWith example code here: https://github.com/seabre/simplify-geometry/tree/master/examples/browser\n\n\n## License\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n","maintainers":[{"name":"seabre","email":"sean@saidigital.co"}],"time":{"modified":"2022-06-26T20:07:52.638Z","created":"2013-07-14T07:32:48.153Z","0.0.1":"2013-07-14T07:32:56.756Z","0.0.2":"2015-02-02T03:52:01.421Z"},"author":{"name":"Sean Brewer","email":"seabre986@gmail.com","url":"https://github.com/seabre"},"repository":{"type":"git","url":"git://github.com/seabre/simplify-geometry.git"},"homepage":"https://github.com/seabre/simplify-geometry","keywords":["geometry","Douglas–Peucker","simplify"],"bugs":{"url":"https://github.com/seabre/simplify-geometry/issues"},"license":"MIT","readmeFilename":"README.md"}