{"name":"geojson-rewind","version":"0.2.0","description":"enforce winding order for geojson","main":"index.js","bin":{"geojson-rewind":"geojson-rewind"},"directories":{"test":"test"},"scripts":{"test":"tap test/rewind.js","cov":"istanbul cover test/rewind.js"},"repository":{"type":"git","url":"git://github.com/mapbox/geojson-rewind.git"},"keywords":["geojson","winding","order","rendering","coordinates"],"author":{"name":"Tom MacWright"},"license":"ISC","bugs":{"url":"https://github.com/mapbox/geojson-rewind/issues"},"homepage":"https://github.com/mapbox/geojson-rewind","dependencies":{"geojson-area":"0.1.0","minimist":"0.0.5","concat-stream":"~1.2.1"},"devDependencies":{"tap":"~0.4.6","istanbul":"~0.2.13"},"gitHead":"baf762639d57367ba50941ee4719fb75af290750","_id":"geojson-rewind@0.2.0","_shasum":"ea558e9e44ff03b8655d0a08b75078dc33a15e79","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"ea558e9e44ff03b8655d0a08b75078dc33a15e79","tarball":"http://registry-npm.ywwl.com/geojson-rewind/download/geojson-rewind-0.2.0.tgz","integrity":"sha512-1YycGMKhRFUwoS+g6P3Uv+euDLW/j5wvravZUBuzR46diZ0IWueTcU/3Kiq5H8XwG2svoGCOqr3lzxNaz0M9pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFsKT4Fp7Xiq0dSobsQW9MRBhFf9OAUTMkFdEg7RjM/AiBBvzUndnfV1aiHrV6QXctLa8i8MQhegXto7fCgvc/0mA=="}],"size":4526,"noattachment":false,"key":"/geojson-rewind/-/geojson-rewind-0.2.0.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/geojson-rewind-0.2.0.tgz_1462458058910_0.22563469549641013"},"readme":"[![Build Status](https://travis-ci.org/mapbox/geojson-rewind.png)](https://travis-ci.org/mapbox/geojson-rewind)\n\n# geojson-rewind\n\nThe [GeoJSON](https://tools.ietf.org/html/rfc7946) specification is [picky about winding order](https://tools.ietf.org/html/rfc7946#section-3.1.6).\n\nThis helps you generate compliant Polygon and MultiPolygon geometries. Furthermore it lets you use [Canvas](http://www.bit-101.com/blog/?p=3702) and other drawing libraries's default behavior to color the interior rings of Polygon and MultiPolygon features.\n\n## usage\n\nas npm module:\n\n    npm install --save geojson-rewind\n\nas console utility\n\n    # install\n    npm install -g geojson-rewind\n    # use\n    geojson-rewind foo.geojson\n\nas browser library\n\ncopy `geojson-rewind.js`\n\n## api\n\n`rewind(geojson, clockwise)`\n\nGiven a GeoJSON FeatureCollection, Feature, or Geometry, return a version\nwith inner and outer rings of different winding orders.\n\nIf `clockwise` is `true`, the outer ring is clockwise, otherwise\nit is counterclockwise.\n","publish_time":1462458060438,"_cnpm_publish_time":1462458060438,"dist-tags":{"latest":"0.3.1"}}