{"name":"react-attr-converter","version":"0.2.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":"7823fbc766bdcec835927065291c04515eed8e68","_id":"react-attr-converter@0.2.0","_npmVersion":"5.0.3","_nodeVersion":"6.10.0","_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"dist":{"integrity":"sha512-XNA+Q9ohjVeXq9kgLlYbPiRoF0G3ZHNAGkKL5SxWJIxsXxmnnWLR4rQhYLOHKUwnIA1AQ9Iuo1C676a0dKPPdQ==","shasum":"1ea801cd353c25fff5c41b91d5a0403769961b55","tarball":"http://registry-npm.ywwl.com/react-attr-converter/download/react-attr-converter-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRW3UE6XcQDZzl2tjFju3KthHt0vdSTnyNoTNEwj2ZdAiEA2EiIMRBFkAaUJquTQYPw9AAR13IB+r+Kvc6sGifSM6M="}],"size":7803,"noattachment":false,"key":"/react-attr-converter/-/react-attr-converter-0.2.0.tgz"},"maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-attr-converter-0.2.0.tgz_1497925376375_0.4455818913411349"},"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":1497925376512,"_cnpm_publish_time":1497925376512,"dist-tags":{"latest":"0.3.1"}}