{"name":"turf-invariant","version":"3.0.0-canary.7879bf6c","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.0-canary.7879bf6c","_shasum":"54db6096268daa406767b0cf8d2425894cb8d666","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"54db6096268daa406767b0cf8d2425894cb8d666","tarball":"http://registry-npm.ywwl.com/turf-invariant/download/turf-invariant-3.0.0-canary.7879bf6c.tgz","integrity":"sha512-5LPk/grol6ddBtY4q0dlbLDrpd4apoogzgZi7OEtkLrKRo5lHY6Xs3UQ7BFVCb3vF0gtTf8UCKhXTufqlOLPuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHK2ye2z1D3Oec8oUEooFMnXPXkKLQhQFFV67MMU4HZJAiEA4hlni++zg60p3/h64RhjzhfkeZLJKhckZBf0aEzb/Tc="}],"size":2114,"noattachment":false,"key":"/turf-invariant/-/turf-invariant-3.0.0-canary.7879bf6c.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/turf-invariant-3.0.0-canary.7879bf6c.tgz_1463430929179_0.25447573442943394"},"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":1463430931364,"_cnpm_publish_time":1463430931364,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}