{"_id":"@dawsonbotsford/humanize-proptype","_rev":"4-0ad016a2848037ffdf89374b21e5c559","name":"@dawsonbotsford/humanize-proptype","description":"Convert property type object from react-docgen to humanized string. Fork of https://github.com/ly-tools/humanize-proptype","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.5":{"name":"@dawsonbotsford/humanize-proptype","version":"0.0.5","description":"Convert property type object from react-docgen to humanized string. Fork of https://github.com/ly-tools/humanize-proptype","main":"index.js","scripts":{"test":"NODE_ENV=test ./node_modules/.bin/_mocha --require should --reporter spec","test-cov":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --require should","test-travis":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --require should"},"author":{"name":"dawsonbotsford"},"license":"MIT","devDependencies":{"istanbul":"~0.4.0","mocha":"~2.3.3","should":"~7.1.1"},"repository":{"type":"git","url":"git+https://github.com/dawsonbotsford/humanize-proptype.git"},"keywords":["humanize","react","proptypes"],"bugs":{"url":"https://github.com/dawsonbotsford/humanize-proptype/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"dependencies":{"capitalize":"^1.0.0"},"gitHead":"690256835327215a829cf01f2a5d28e2c28b3e92","homepage":"https://github.com/dawsonbotsford/humanize-proptype#readme","_id":"@dawsonbotsford/humanize-proptype@0.0.5","_shasum":"5a7f121d462320e30b68f20e600c78d05696e2cb","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.1","_npmUser":{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"},"dist":{"shasum":"5a7f121d462320e30b68f20e600c78d05696e2cb","tarball":"https://registry.npmjs.org/@dawsonbotsford/humanize-proptype/-/humanize-proptype-0.0.5.tgz","integrity":"sha512-1DuCINHvtOnnYXVGvfH6fl+m22l+6bZieuzU92A7eGiWo50+bmvbmIuYxqkJtZkRbloH8hqBn7lumo4QBKcVjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZP5zjERYqH/dfxbU7nsig8Jmzd8nZhwEVsJFh4Zf7ZAiEAqCmNBzfIhEeLYjqf/8XEtaQPGc/0VFOZAIZFTGeFuJQ="}]},"maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/humanize-proptype-0.0.5.tgz_1466714278185_0.6679988086689264"}},"0.1.1":{"name":"@dawsonbotsford/humanize-proptype","version":"0.1.1","description":"Convert property type object from react-docgen to humanized string. Fork of https://github.com/ly-tools/humanize-proptype","main":"index.js","scripts":{"test":"NODE_ENV=test ./node_modules/.bin/_mocha --require should --reporter spec","test-cov":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --require should","test-travis":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --require should"},"author":{"name":"ly-tools"},"license":"MIT","devDependencies":{"istanbul":"~0.4.0","mocha":"~2.3.3","should":"~7.1.1"},"repository":{"type":"git","url":"git+https://github.com/ly-tools/humanize-proptype.git"},"keywords":["humanize","react","proptypes"],"bugs":{"url":"https://github.com/ly-tools/humanize-proptype/issues"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"dependencies":{"capitalize":"^1.0.0"},"gitHead":"66d419a8acc438377df32849f84bc1a15166fcc0","homepage":"https://github.com/ly-tools/humanize-proptype#readme","_id":"@dawsonbotsford/humanize-proptype@0.1.1","_shasum":"75991412160d124e9e7b1e0f2c96e268fd9915d5","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"},"dist":{"shasum":"75991412160d124e9e7b1e0f2c96e268fd9915d5","tarball":"https://registry.npmjs.org/@dawsonbotsford/humanize-proptype/-/humanize-proptype-0.1.1.tgz","integrity":"sha512-hIoGYbNNL6/m2YmHufF31NOZ8ev4PKv/8s2V+gwiExGmd4GDpaOB08lpvtWPwrnM+qlbu+3V1Y+V5EApfL+bAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBsTY1vHN552fjU/DiQU2G5IcuIwE+JEs1SXokxPnBTAIgYOBkBDYtnSXJKBnhxYq5Cf2t/qM12dborWBZ3MCN/1Y="}]},"maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/humanize-proptype-0.1.1.tgz_1487731582085_0.8596469825133681"}}},"readme":"# humanize-proptype\n\n[![Test coverage](https://img.shields.io/coveralls/ly-tools/humanize-proptype.svg?style=flat-square)](https://coveralls.io/r/ly-tools/humanize-proptype?branch=master)\n[![Build Status](https://travis-ci.org/ly-tools/humanize-proptype.png)](https://travis-ci.org/ly-tools/humanize-proptype)\n[![Dependency Status](https://david-dm.org/ly-tools/humanize-proptype.svg)](https://david-dm.org/ly-tools/humanize-proptype)\n[![devDependency Status](https://david-dm.org/ly-tools/humanize-proptype/dev-status.svg)](https://david-dm.org/ly-tools/humanize-proptype#info=devDependencies)\n[![NPM version](http://img.shields.io/npm/v/humanize-proptype.svg?style=flat-square)](http://npmjs.org/package/humanize-proptype)\n[![node](https://img.shields.io/badge/node.js-%3E=_4.0-green.svg?style=flat-square)](http://nodejs.org/download/)\n[![License](http://img.shields.io/npm/l/humanize-proptype.svg?style=flat-square)](LICENSE)\n[![npm download](https://img.shields.io/npm/dm/humanize-proptype.svg?style=flat-square)](https://npmjs.org/package/humanize-proptype)\n\nConvert property type object from react-docgen to humanized string\n\n## Installation\n\n```bash\n$ npm install --save humanize-proptype\n```\n\n## Usage\n\n```javascript\nconst humanize = require('humanize-proptype');\nhumanize({\n  name: 'number'\n});\n// => Number\n\nhumanize({\n  name: 'array'\n});\n// => Array\n\nhumanize({\n  name: 'bool'\n});\n// => Bool\n\nhumanize({\n  name: 'func'\n});\n// => Function\n\nhumanize({\n  name: 'object'\n});\n// => Object\n\nhumanize({\n  name: 'string'\n});\n// => String\n\nhumanize({\n  name: 'node'\n});\n// => Node\n\nhumanize({\n  name: 'element'\n});\n// => Element\n\nhumanize({\n  name: 'instanceOf',\n  value: 'Message'\n});\n// => Class(Message)\n\nhumanize({\n  name: 'enum',\n  value: [{\n    value: '\\'News\\'',\n    computed: false\n  }, {\n    value: '\\'Photos\\'',\n    computed: false\n  }]\n});\n// => 'News' │ 'Photos'\n\nhumanize({\n  name: 'union',\n  value: [{\n    name: 'string'\n  }, {\n    name: 'number'\n  }, {\n    name: 'instanceOf',\n    value: 'Message'\n  }]\n});\n// => String │ Number │ Class(Message)\n\nhumanize({\n  name: 'arrayOf',\n  value: {\n    name: 'number'\n  }\n});\n// => Array(Number)\n\nhumanize({\n  name: 'custom',\n  raw: 'React.PropTypes.objectOf(React.PropTypes.number)'\n});\n// => ObjectOf(Number)\n\nhumanize({\n  name: 'shape',\n  value: {\n    color: {\n      name: 'string'\n    },\n    fontSize: {\n      name: 'number'\n    }\n  }\n});\n/* =>\n{\n  \"color\": \"String\",\n  \"fontSize\": \"Number\"\n}\n*/\n\nhumanize({\n  name: 'custom',\n  raw: 'function(props, propName, componentName) {}'\n});\n// => Custom(Function)\n\nhumanize({\n  name: 'union',\n  value: [{\n    name: 'shape',\n    value: {\n      color: {\n        name: 'string'\n      },\n      fontSize: {\n        name: 'number'\n      }\n    }\n  }, {\n    name: 'arrayOf',\n    value: {\n      name: 'enum',\n      value: [{\n        value: '\\'News\\'',\n        computed: false\n      }, {\n        value: '\\'Photos\\'',\n        computed: false\n      }]\n    }\n  }, {\n    name: 'instanceOf',\n    value: 'Message'\n  }]\n});\n/* =>\n{\n  \"color\": \"String\",\n  \"fontSize\": \"Number\"\n} │ Array('News' │ 'Photos') │ Class(Message)\n*/\n```\n\n## Test\n\n```bash\n$ npm run test\n$ npm run test-cov\n$ npm run test-travis\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 LingyuCoder\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"time":{"modified":"2022-06-12T16:57:30.796Z","created":"2016-06-23T20:37:58.723Z","0.0.5":"2016-06-23T20:37:58.723Z","0.1.1":"2017-02-22T02:46:22.310Z"},"homepage":"https://github.com/ly-tools/humanize-proptype#readme","keywords":["humanize","react","proptypes"],"repository":{"type":"git","url":"git+https://github.com/ly-tools/humanize-proptype.git"},"author":{"name":"ly-tools"},"bugs":{"url":"https://github.com/ly-tools/humanize-proptype/issues"},"license":"MIT","readmeFilename":"README.md"}