{"name":"turf-invariant","version":"3.0.7-canary.ae89c8b3","description":"enforce expectations about inputs to turf","main":"index.js","scripts":{"test":"node test.js"},"keywords":["turf","invariant","expectations"],"author":{"name":"Tom MacWright"},"license":"ISC","repository":{"type":"git","url":"git+ssh://git@github.com/Turfjs/turf-invariant.git"},"devDependencies":{"tape":"^3.5.0"},"dependencies":{},"bugs":{"url":"https://github.com/Turfjs/turf-invariant/issues"},"homepage":"https://github.com/Turfjs/turf-invariant#readme","_id":"turf-invariant@3.0.7-canary.ae89c8b3","_shasum":"f459a882dc3d1c92edafbc7559e21ad19075ad41","_from":".","_npmVersion":"3.9.2","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"f459a882dc3d1c92edafbc7559e21ad19075ad41","tarball":"http://registry-npm.ywwl.com/turf-invariant/download/turf-invariant-3.0.7-canary.ae89c8b3.tgz","integrity":"sha512-9FRcUyw/3ip9K/fTG83dYpf1+Bf+/ENZlLgMcwJWlfRmsonmHpW3z5Mqul+yY1+KyJKkD+hlAxkZfMEGWrfqFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNsQIigBr7zD3EL2okcvq/VPMCjCP4aPmwo/K/wY88BAIhAML5D9thi4ih2OlPxSEu11v8UN1nuWlYUUX8OpWyX/55"}],"size":2118,"noattachment":false,"key":"/turf-invariant/-/turf-invariant-3.0.7-canary.ae89c8b3.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/turf-invariant-3.0.7-canary.ae89c8b3.tgz_1465940859687_0.7190765589475632"},"directories":{},"readme":"# turf-invariant\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-invariant.png)](http://travis-ci.org/Turfjs/turf-invariant)\n\nenforce expectations about inputs to turf\n\n\n### `geojsonType(value, type, name)`\n\nEnforce expectations about types of GeoJSON objects for Turf.\n\n\n### Parameters\n\n| parameter | type    | description              |\n| --------- | ------- | ------------------------ |\n| `value`   | GeoJSON | any GeoJSON object       |\n| `type`    | string  | expected GeoJSON type    |\n| `name`    | String  | name of calling function |\n\n\n\n### `featureOf(feature, types, name)`\n\nEnforce expectations about types of Feature inputs for Turf.\nInternally this uses geojsonType to judge geometry types.\n\n\n### Parameters\n\n| parameter | type    | description                              |\n| --------- | ------- | ---------------------------------------- |\n| `feature` | Feature | a feature with an expected geometry type |\n| `types`   | string  | expected GeoJSON type                    |\n| `name`    | String  | name of calling function                 |\n\n\n\n### `collectionOf(featurecollection, type, name)`\n\nEnforce expectations about types of FeatureCollection inputs for Turf.\nInternally this uses geojsonType to judge geometry types.\n\n\n### Parameters\n\n| parameter           | type              | description                                           |\n| ------------------- | ----------------- | ----------------------------------------------------- |\n| `featurecollection` | FeatureCollection | a featurecollection for which features will be judged |\n| `type`              | string            | expected GeoJSON type                                 |\n| `name`              | String            | name of calling function                              |\n\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-invariant\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n","publish_time":1465940863024,"_cnpm_publish_time":1465940863024,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}