{"name":"react-attr-converter","version":"0.0.2","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 Alex 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.8.0","xo":"^0.12.1"},"xo":{"space":true},"gitHead":"cf31ca6dd8a0bd7d20ea08ca62a7836d88a97f4d","_id":"react-attr-converter@0.0.2","_shasum":"88bec26c4506a3ec4b476fe4b6e5d3f41c2b3d27","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"dist":{"shasum":"88bec26c4506a3ec4b476fe4b6e5d3f41c2b3d27","tarball":"http://registry-npm.ywwl.com/react-attr-converter/download/react-attr-converter-0.0.2.tgz","integrity":"sha512-ZrrAL1Q6Bxv7Vl2fN/E7DOiYUnKgq8j0EUqLLoKF8xF+J3YTWCx4dz+0+1cQFp4KDhFd/oefMR/zmE/uZRWtBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPNGdfNFKf3VenaTRXCngpkFBgP4grBzBhDYyKTYA9nAIhAPZfdZGj8MrsMAeeuPILATMgFCpPAOUTLmAYd6cbmLrg"}],"size":5996,"noattachment":false,"key":"/react-attr-converter/-/react-attr-converter-0.0.2.tgz"},"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":1450543721817,"_cnpm_publish_time":1450543721817,"dist-tags":{"latest":"0.3.1"}}