{"_id":"proptypes","_rev":"275261","name":"proptypes","description":"React's PropTypes, packaged up as a standalone module.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"time":{"modified":"2021-06-03T17:58:47.000Z","created":"2015-10-20T02:00:57.753Z","1.1.0":"2017-06-03T01:29:01.249Z","1.0.0":"2017-04-25T02:05:21.801Z","0.14.4":"2017-02-03T16:02:14.258Z","0.14.3":"2016-02-06T15:10:30.398Z","0.14.2":"2016-02-06T15:06:12.365Z","0.14.1":"2015-11-08T18:14:25.782Z","0.14.0":"2015-10-20T02:00:57.753Z"},"users":{"developit":true,"pnhoang":true,"suddi":true},"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"versions":{"1.1.0":{"name":"proptypes","amdName":"PropTypes","version":"1.1.0","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel --module-id $npm_package_amdName -s -d . src","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"files":["src","index.js","index.js.map","disabled.js","disabled.js.map"],"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel-cli":"^6.23.0","babel-preset-env":"^1.2.1"},"gitHead":"c3dfd2c51965ad2e587db78810968cef609490b7","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@1.1.0","_shasum":"78b3828a5aa6bb1308939e0de3c6044dfd4bd239","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"78b3828a5aa6bb1308939e0de3c6044dfd4bd239","size":13645,"noattachment":false,"key":"/proptypes/-/proptypes-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/proptypes/download/proptypes-1.1.0.tgz"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/proptypes-1.1.0.tgz_1496453341127_0.8228477237280458"},"directories":{},"publish_time":1496453341249,"_hasShrinkwrap":false,"_cnpm_publish_time":1496453341249},"1.0.0":{"name":"proptypes","amdName":"PropTypes","version":"1.0.0","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel --module-id $npm_package_amdName -s -d . src","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"files":["src","index.js","index.js.map","disabled.js","disabled.js.map"],"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel-cli":"^6.23.0","babel-preset-env":"^1.2.1"},"gitHead":"6e5abf0ab1fae40dc88cdefbd6ae864ebedfc21f","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@1.0.0","_shasum":"ba831a653aab89862f28a084cebbc0cdf9f1b09b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"ba831a653aab89862f28a084cebbc0cdf9f1b09b","size":13567,"noattachment":false,"key":"/proptypes/-/proptypes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/proptypes/download/proptypes-1.0.0.tgz"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/proptypes-1.0.0.tgz_1493085921583_0.40092003415338695"},"directories":{},"publish_time":1493085921801,"_hasShrinkwrap":false,"_cnpm_publish_time":1493085921801},"0.14.4":{"name":"proptypes","amdName":"PropTypes","version":"0.14.4","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"files":["src","index.js","index.js.map"],"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"35cd5b3417b2e24edc023f742e2d34f38761c286","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.4","_shasum":"1ead7600d44472a614aa1cf0c4cccee7d867997d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"1ead7600d44472a614aa1cf0c4cccee7d867997d","size":10664,"noattachment":false,"key":"/proptypes/-/proptypes-0.14.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/proptypes/download/proptypes-0.14.4.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/proptypes-0.14.4.tgz_1486137734022_0.8539393085520715"},"directories":{},"publish_time":1486137734258,"_cnpm_publish_time":1486137734258,"_hasShrinkwrap":false},"0.14.3":{"name":"proptypes","amdName":"PropTypes","version":"0.14.3","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"811dbc81913555301ff3d82339f40f35e1542bff","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.3","_shasum":"948d47f0ef1b501e34d934e42b39d60d26a8bf9d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"948d47f0ef1b501e34d934e42b39d60d26a8bf9d","size":9959,"noattachment":false,"key":"/proptypes/-/proptypes-0.14.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/proptypes/download/proptypes-0.14.3.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/proptypes-0.14.3.tgz_1454771427982_0.8191728536039591"},"directories":{},"publish_time":1454771430398,"_cnpm_publish_time":1454771430398,"_hasShrinkwrap":false},"0.14.2":{"name":"proptypes","amdName":"PropTypes","version":"0.14.2","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"333a3abe271fb7046272872ee4752b6de7831eca","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.2","_shasum":"caabbce98d1e77e225eca233ed3179a0a5980e32","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"caabbce98d1e77e225eca233ed3179a0a5980e32","size":9951,"noattachment":false,"key":"/proptypes/-/proptypes-0.14.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/proptypes/download/proptypes-0.14.2.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/proptypes-0.14.2.tgz_1454771169509_0.03426334448158741"},"directories":{},"publish_time":1454771172365,"_cnpm_publish_time":1454771172365,"_hasShrinkwrap":false},"0.14.1":{"name":"proptypes","version":"0.14.1","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -s -o $npm_package_main < src/index.js"},"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"7abe4c9ee3aace4584ee95b28842abec16fdc2de","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.1","_shasum":"3a461e9aaf53697e2c9057a870c0ffb0cf155933","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"3a461e9aaf53697e2c9057a870c0ffb0cf155933","size":9824,"noattachment":false,"key":"/proptypes/-/proptypes-0.14.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/proptypes/download/proptypes-0.14.1.tgz"},"directories":{},"publish_time":1447006465782,"_cnpm_publish_time":1447006465782,"_hasShrinkwrap":false},"0.14.0":{"name":"proptypes","version":"0.14.0","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","gitHead":"e1e47c9a3c1c46c9dc281bf6fa9b95dc5a597533","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.0","scripts":{},"_shasum":"30c123f206c625f51233f9a8a62289971bcdfb00","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"acdlite","email":"npm@andrewclark.io"},{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"30c123f206c625f51233f9a8a62289971bcdfb00","size":5361,"noattachment":false,"key":"/proptypes/-/proptypes-0.14.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/proptypes/download/proptypes-0.14.0.tgz"},"directories":{},"publish_time":1445306457753,"_cnpm_publish_time":1445306457753,"_hasShrinkwrap":false}},"readme":"# proptypes\n\n> React's [PropTypes], packaged up as a standalone module.\n\n**DISCLAIMER:**\nThis is literally copied from the React 0.14 codebase.\nIf you're using PropTypes with React, it would be silly to reference this standalone version.\n\n\n## Usage\n\n```js\nfunction check(props, propTypes) {\n  for (let prop in propTypes) {\n    if (propTypes.hasOwnProperty(prop)) {\n      let err = propTypes[prop](props, prop, 'name', 'prop');\n      if (err) {\n        console.warn(err);\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\nlet valid = check({\n  a: 42,\n  b: 'News'\n}, {\n  a: PropTypes.number,\n  b: PropTypes.oneOf(['News', 'Photos'])\n});\n\nvalid;  // true\n```\n\n## Production build\n\n### Disabling\n\nWith webpack:\n\n```js\nmodule.exports = {\n  resolve: {\n    alias: {\n      proptypes: 'proptypes/disabled',\n    }\n  }\n};\n```\n\n### Removing the definitions with React \n\nWhen you are using this package with React like API, you might want to save bandwidth by removing the definitions.\nYou can use [babel-plugin-transform-react-remove-prop-types](https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types) for that use case, for instance:\n\n```js\n// In\nconst Baz = (props) => (\n  <div {...props} />\n);\n\nBaz.propTypes = {\n  className: PropTypes.string\n};\n\n// Out\nconst Baz = (props) => (\n  <div {...props} />\n);\n```\n\n## License\n\nBSD\n\n[PropTypes]: https://github.com/facebook/react/blob/master/src/isomorphic/classic/types/ReactPropTypes.js\n","_attachments":{},"homepage":"https://github.com/developit/proptypes","bugs":{"url":"https://github.com/developit/proptypes/issues"},"license":"BSD"}