{"name":"react-attr-converter","version":"0.0.1","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":"c9eba54c61f872e42f3403e293edc1f543a819c5","_id":"react-attr-converter@0.0.1","_shasum":"31b714ee37a79319e768776bfaaceb73b77c41e5","_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":"31b714ee37a79319e768776bfaaceb73b77c41e5","tarball":"http://registry-npm.ywwl.com/react-attr-converter/download/react-attr-converter-0.0.1.tgz","integrity":"sha512-eORPg4dUqU5fF68cjsLQymUUN4m78rt1wWFNL1UMKb4+7HX3jZBzPDMsicxC9wfNZFvee/mRzoI1wyu9ZIKqbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKHkL5VNZJRpqVuzZF5I0TwFbHOVtTpmTTLRtWono0RAIhAOHMCpXampbSyMioInsuNiJULlkHa6PUV8MRXjoJaPXV"}],"size":5982,"noattachment":false,"key":"/react-attr-converter/-/react-attr-converter-0.0.1.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":1450534638817,"_cnpm_publish_time":1450534638817,"dist-tags":{"latest":"0.3.1"}}