{"name":"react-is-deprecated","version":"0.1.0","description":"Adds an isDeprecated method to the React.PropTypes object","main":"dist.js","scripts":{"test":"mocha test","prepublish":"make build"},"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":"5bb1ffe7c8f2ffd86b51398e7bc7a771a939ddf7","_id":"react-is-deprecated@0.1.0","_shasum":"05ee017f293bb22bb94bc79d7cc251a2ea816946","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.1","_npmUser":{"name":"aweary","email":"Kierkegaurd@gmail.com"},"dist":{"shasum":"05ee017f293bb22bb94bc79d7cc251a2ea816946","tarball":"http://registry-npm.ywwl.com/react-is-deprecated/download/react-is-deprecated-0.1.0.tgz","integrity":"sha512-0XhD0S+FB1YvOVjb0x8Ip+J0E1+0Kmc1KtBEnkM96ZVQn+QdwoEB/mQ7ZAaANVbEn85KJ2He9fWl5VVpz7WVCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0bKmlY/XzRcNIb5UpIZTsitLiWuA7CD0AvNXdO3kMswIhANWOaRQPmDfWdpd6x4QkfSlUlQ0BzluinNpGcWSB8QJE"}],"size":2367,"noattachment":false,"key":"/react-is-deprecated/-/react-is-deprecated-0.1.0.tgz"},"maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.1.0.tgz_1459200876214_0.19964263029396534"},"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":1459200878514,"_cnpm_publish_time":1459200878514,"dist-tags":{"latest":"0.1.2"}}