{"name":"react-is-deprecated","version":"0.0.1","description":"Adds an isDeprecated method to the React.PropTypes object","main":"dist.js","scripts":{"test":"mocha test"},"keywords":["react","propTypes","isDeprecated"],"author":{"name":"Brandon Dail"},"license":"MIT","devDependencies":{"babel-cli":"^6.6.5","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","react":"^0.14.7"},"gitHead":"5a1d18fd3bcb9f2bf380264566c5a334a3a451d9","_id":"react-is-deprecated@0.0.1","_shasum":"1f5ddec1e69566a81112fcd209c335599843fa3a","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.1","_npmUser":{"name":"aweary","email":"Kierkegaurd@gmail.com"},"dist":{"shasum":"1f5ddec1e69566a81112fcd209c335599843fa3a","tarball":"http://registry-npm.ywwl.com/react-is-deprecated/download/react-is-deprecated-0.0.1.tgz","integrity":"sha512-QLXTpJOs8quCm0vHC/WBfAmq4fVmjQlu6zNwyLWazUnjDlVfvw5XAnOi7bSGcf8nCcibPkR/LDqs4QBSfdjHBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZbqjIYlebEv0TTLDeqvwx+Gti/ahamde2QDfEQMKGqAIgdfnjklP81vl6fm4Hz87CpvMWEBttJ8n5BIF8welJet8="}],"size":1335,"noattachment":false,"key":"/react-is-deprecated/-/react-is-deprecated-0.0.1.tgz"},"maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.0.1.tgz_1459183629471_0.9746103137731552"},"directories":{},"readme":"# react-is-deprecated\n\n> Add an `isDeprecated` to your React PropTypes.\n\n\n## Install\n\n```\n$ npm install --save react-is-deprecated\n```\n\n\n## Usage\n\n`react-is-deprecated` provides two options for wrapping `React.PropTypes`. You can use the `deprecate` function (recommended) to wrap a specific type and output a warning\nwhenever the prop is defined:\n\n```js\n\nstatic propTypes = {\n  deprecated: deprecate(PropTypes.string, `Your message here`)\n}\n\n```\n\nIf you'd like to have an `isDeprecated` function attached to all `React.PropTypes` options you can use `addIsDeprecated`.\n\n```js\n\nconst PropTypes = addIsDeprecated(React.PropTypes);\n...\nstatic propTypes = {\n  deprecated: PropTypes.object.isDeprecated('Your message here.')\n}\n\n```\n\n**Note: `addIsDeprecated` returns a copy of the passed `PropTypes` instance\nand does not mutate the `React.PropTypes`. `isDeprecated` will only work on the PropType object returned.**\n\n\n## API\n\n### `deprecate(propType: React.PropTypes.[type], message: string)`\nReturns a function wrapping the `propType` argument with a check to determine if the prop is defined and, if so, log out a warning via `console.warn` once.\n\n### `addIsDeprecated(input: React.PropTypes)`\n\nReturns an augmented version of `React.PropTypes` with `isDeprecated` added to all top level properties.\n\n### `[type].isDeprecated(message: string)`\nIf you use the `addIsDeprecated` function to return a new copy of `React.PropTypes` then each type will have an `isDeprecated` message.\nIt is identical to `deprecate` with the exception that it is already\nbound to the `[type]` and just accepts the message.\n\n## License\n\nMIT © Brandon Dail\n","publish_time":1459183630406,"_cnpm_publish_time":1459183630406,"dist-tags":{"latest":"0.1.2"}}