{"name":"react-attr-converter","version":"0.3.0","description":"Convert HTML attribute names to React props","main":"index.js","scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/noraesae/react-attr-converter.git"},"keywords":["react","attribute","props"],"author":{"name":"Hyunje Jun","email":"me@noraesae.net","url":"http://noraesae.net/"},"license":"MIT","bugs":{"url":"https://github.com/noraesae/react-attr-converter/issues"},"homepage":"https://github.com/noraesae/react-attr-converter#readme","devDependencies":{"ava":"^0.19.1","xo":"^0.12.1"},"xo":{"space":true},"gitHead":"1144f7e6c4a938594bddb3e892543f05783710ac","_id":"react-attr-converter@0.3.0","_npmVersion":"5.2.0","_nodeVersion":"6.11.0","_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"dist":{"integrity":"sha512-RcyQFuRn/a6xRQbmbWJIDOaiUKdgxTWnGkOO1mWDeKCrglj707H8sJfPwXNgK7BOYDIvT1Guc8NPNCiC7BnYhw==","shasum":"184e550c269c6a8dc3a9b3a85b7974ca3302a37d","tarball":"http://registry-npm.ywwl.com/react-attr-converter/download/react-attr-converter-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6sh6QTnMZ23Z82txqJQoN38YPbN8zxGxP+6HoTz53XAiAGWd9rSDY3opqsJejBqOH1YfQg58hAFIghGKIjGZ8wMA=="}],"size":7810,"noattachment":false,"key":"/react-attr-converter/-/react-attr-converter-0.3.0.tgz"},"maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-attr-converter-0.3.0.tgz_1499846267740_0.04020120692439377"},"directories":{},"readme":"# react-attr-converter [![travis-ci](https://travis-ci.org/noraesae/react-attr-converter.svg)](https://travis-ci.org/noraesae/react-attr-converter)\n\nConvert HTML attribute names to React props.\n\n## Convert how?\n\nIt converts HTML attribute names into prop names used by React.\n\n```js\nconvert('class'); // => 'className'\nconvert('for'); // => 'htmlFor'\nconvert('onclick'); // => 'onClick'\nconvert('onCLICK'); // => 'onClick'\n```\n\nIt bypasses attribute names which are not supported by React.\n\n```js\nconvert('data-hello'); // => 'data-hello'\nconvert('lovelive'); // => 'lovelive'\n```\n\n## How to use\n\nInstall with NPM:\n\n```\nnpm i --save react-attr-converter\n```\n\nImport with CommonJS or whatever:\n\n```js\nconst convert = require('react-attr-converter');\n\nimport convert from 'react-attr-converter';\nimport * as convert from 'react-attr-converter'; // both of them work\n```\n\n## A bug!\n\nWhen a bug is found, please report them in [Issues](https://github.com/noraesae/react-attr-converter/issues).\n\nAlso, any form of contribution(especially a PR) will absolutely be welcomed :beers:\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1499846267841,"_cnpm_publish_time":1499846267841,"dist-tags":{"latest":"0.3.1"}}