{"name":"react-html-attributes","version":"1.3.0","description":"A react supported html attributes store keyed by their tags","main":"dist/index.js","scripts":{"commit":"git-cz","prebuild":"rimraf dist","build":"npm-run-all --parallel build:*","build:main":"babel --copy-files --out-dir dist --ignore *.test.*,*.build.js, src","build:umd":"webpack --output-filename index.umd.js","build:umd.min":"webpack --output-filename index.umd.min.js -p","test":"cross-env NODE_ENV=test nyc mocha","report-coverage":"cat ./coverage/lcov.info | codecov","watch:test":"mocha --watch","lint":"eslint src --fix","validate":"npm-run-all --parallel test lint build","release":"semantic-release pre && npm publish && semantic-release post","compile-build-script":"babel src/build-json.build.js --out-file build-json-compiled.js","update-json-files":"npm run compile-build-script && node build-json-compiled.js"},"repository":{"type":"git","url":"git+https://github.com/jackyho112/react-html-attributes.git"},"keywords":["html","react","attributes"],"files":["dist"],"author":{"name":"Jacky Ho"},"license":"MIT","bugs":{"url":"https://github.com/jackyho112/react-html-attributes/issues"},"homepage":"https://github.com/jackyho112/react-html-attributes#readme","dependencies":{"html-element-attributes":"^1.0.0"},"peerDependencies":{"html-element-attributes":"^1.0.0"},"devDependencies":{"@bubltechnology/customizable-commit-analyzer":"1.0.2-0","babel-cli":"6.11.4","babel-loader":"6.2.4","babel-plugin-istanbul":"1.0.3","babel-preset-es2015":"6.9.0","babel-register":"6.11.6","bail":"1.0.0","chai":"3.5.0","codecov":"2.1.0","commitizen":"2.9.6","cross-env":"2.0.0","cz-conventional-changelog":"2.0.0","eslint":"3.19.0","eslint-config-airbnb":"14.1.0","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"4.0.0","ghooks":"1.3.2","jsdom":"9.12.0","json-loader":"0.5.4","lodash":"4.17.4","mocha":"3.0.0","npm-run-all":"2.3.0","nyc":"7.1.0","rimraf":"2.5.4","semantic-release":"^6.3.2","validate-commit-msg":"2.12.1","webpack":"1.13.1"},"nyc":{"all":true,"check-coverage":true,"branches":100,"function":100,"lines":100,"statements":100,"reporter":["text","lcov"],"include":["src"],"sourceMap":false,"instrument":false,"require":["babel-register"]},"babel":{"presets":["es2015"],"env":{"test":{"plugins":["istanbul"]}}},"config":{"commitizen":{"path":"cz-conventional-changelog"},"ghooks":{"pre-commit":"npm run validate && npm run update-json-files","commit-msg":"validate-commit-msg"}},"release":{"analyzeCommits":"@bubltechnology/customizable-commit-analyzer"},"gitHead":"a33e5a9a76a51b41fe402526b2b728b97dc43add","_id":"react-html-attributes@1.3.0","_shasum":"c97896e9cac47ad9c4e6618b835029a826f5d28c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"jackyho112","email":"jackyho112dev@gmail.com"},"dist":{"shasum":"c97896e9cac47ad9c4e6618b835029a826f5d28c","tarball":"http://registry-npm.ywwl.com/react-html-attributes/download/react-html-attributes-1.3.0.tgz","integrity":"sha512-iLEctbv+NE59nC+PmY+SVonw68kh7m3teZ6oPhEAWHBM7N1JEuBFSDHa+sJzON9cG6xS1UEs+ljcQ0N5RDwmgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0F1Y6bVjin93imHMcaOT4DgYkjHN434EZzDc16KHt7AiEA3MF0G0VlZge6N1hE7wpFCmEiY25OY3XGHTChzSCp+Ew="}],"size":20990,"noattachment":false,"key":"/react-html-attributes/-/react-html-attributes-1.3.0.tgz"},"maintainers":[{"name":"jackyho112","email":"jackyho112dev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-html-attributes-1.3.0.tgz_1493769240465_0.44632851844653487"},"directories":{},"readme":"[![Build Status][build-badge]][build-page]\n[![version][version-badge]][package]\n\n# react-html-attributes\n\nA store of React HTML attributes keyed by their respective tags. Global\nattributes and React specific attributes are under `'*'`. A HTML tag will map\nto all the html attributes supported by React. HTML tags that don't have any\nReact-supported non-global attributes won't have keys in the store.\n\nThe store also has all HTML and SVG tags supported by React under the key,\n`'elements'` which will map to an object with keys, `'svg'` and `'html'`.\nThe React docs have been updated to remove a list of tags supported, so it\nis assumed that React now supports all available tags. If that is not the\ncase, please raise an issue [here](https://github.com/facebook/react/issues/new).\n\nOne more note: all SVG element attributes supported by React are under the\n`'svg'` key to avoid too many duplicated values and unnecessary file size.\n\nReference:\n[React docs](https://facebook.github.io/react/docs/dom-elements.html)\n\n## Installation\n\nnpm:\n\n```bash\nnpm install react-html-attributes\n```\n\n## Usage\n\n```javascript\nvar htmlElementAttributes = require('react-html-attributes');\n```\n\n```javascript\nhtmlElementAttributes['*'];\n```\n\nReturns:\n\n```javascript\n[\n  \"acceptCharset\",\n  \"accessKey\",\n  \"allowFullScreen\",\n  \"allowTransparency\",\n  \"autoComplete\",\n  \"autoFocus\",\n  \"autoPlay\",\n  \"capture\",\n  \"cellPadding\",\n  \"cellSpacing\",\n  \"charSet\",\n  \"classID\",\n  \"className\",\n  \"colSpan\",\n  \"contentEditable\",\n  \"contextMenu\",\n  \"crossOrigin\",\n  \"dangerouslySetInnerHTML\",\n  \"dateTime\",\n  \"dir\",\n  \"draggable\",\n  \"encType\",\n  \"formAction\",\n  \"formEncType\",\n  \"formMethod\",\n  \"formNoValidate\",\n  \"formTarget\",\n  \"frameBorder\",\n  \"hidden\",\n  \"hrefLang\",\n  \"htmlFor\",\n  \"httpEquiv\",\n  \"id\",\n  \"inputMode\",\n  \"is\",\n  \"itemID\",\n  \"itemProp\",\n  \"itemRef\",\n  \"itemScope\",\n  \"itemType\",\n  \"keyParams\",\n  \"keyType\",\n  \"lang\",\n  \"marginHeight\",\n  \"marginWidth\",\n  \"maxLength\",\n  \"mediaGroup\",\n  \"minLength\",\n  \"noValidate\",\n  \"radioGroup\",\n  \"readOnly\",\n  \"role\",\n  \"rowSpan\",\n  \"scoped\",\n  \"seamless\",\n  \"spellCheck\",\n  \"srcDoc\",\n  \"srcLang\",\n  \"srcSet\",\n  \"style\",\n  \"suppressContentEditableWarning\",\n  \"tabIndex\",\n  \"title\",\n  \"useMap\",\n  \"wmode\"\n]\n```\n\n```javascript\nhtmlElementAttributes['elements']['svg'];\n```\n\nreturns:\n\n```javascript\n[\n  \"circle\",\n  \"clipPath\",\n  \"defs\",\n  \"ellipse\",\n  \"g\",\n  \"image\",\n  \"line\",\n  \"linearGradient\",\n  \"mask\",\n  \"path\",\n  \"pattern\",\n  \"polygon\",\n  \"polyline\",\n  \"radialGradient\",\n  \"rect\",\n  \"stop\",\n  \"svg\",\n  \"text\",\n  \"tspan\"\n]\n```\n\n## Contributing\n\nCommit by\n\n```bash\nnpm run commit\n```\n\nI am open to suggestions in improving this library. If you know any page that\nhas a better list related to SVG properties, HTML properties or React-supported\nHTML properties to be crawled. Please let me know!\n\n## License\n\n[MIT][license] © Jacky Ho\n\n<!-- Definition -->\n[license]: LICENSE\n[build-page]: https://travis-ci.org/jackyho112/react-html-attributes.svg\n[build-badge]: https://img.shields.io/travis/jackyho112/react-html-attributes.svg\n[version-badge]: https://img.shields.io/npm/v/react-html-attributes.svg?style=flat-square\n[package]: https://www.npmjs.com/package/react-html-attributes\n","publish_time":1493769242161,"_cnpm_publish_time":1493769242161,"dist-tags":{"latest":"1.4.6"}}