{"name":"geojson-rewind","version":"0.0.0","description":"enforce winding order for geojson","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node 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":"BSD-2-Clause","bugs":{"url":"https://github.com/mapbox/geojson-rewind/issues"},"homepage":"https://github.com/mapbox/geojson-rewind","dependencies":{"geojson-area":"0.1.0"},"_id":"geojson-rewind@0.0.0","dist":{"shasum":"d41384921712e0af38680374df92a34280a5fa68","tarball":"http://registry-npm.ywwl.com/geojson-rewind/download/geojson-rewind-0.0.0.tgz","integrity":"sha512-pI2cqDBrUmTIhpK7ZNE3IKfT4CJtp7U/Boi1TKXCp6VnttjONJ0jGqLwcC/9+0nYRfHz7++V1zKxJmFCsR7DSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCksjajYUzHNTa3I3kqIngWUSN1lnZD5U2b0pMHdTrhEQIgZ7QgAjX/af1aF07cP/UPgNtWVf3n1Br6nZ+uvWtRrJk="}],"size":1754,"noattachment":false,"key":"/geojson-rewind/-/geojson-rewind-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"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":1387165117264,"_cnpm_publish_time":1387165117264,"dist-tags":{"latest":"0.3.1"}}