{"_id":"html2bemjson","_rev":"330823","name":"html2bemjson","description":"HTML to BEMJSON convertor","dist-tags":{"latest":"1.10.0"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"time":{"modified":"2021-06-07T02:46:18.000Z","created":"2014-01-20T22:19:24.351Z","1.10.0":"2017-05-11T21:48:32.140Z","1.9.0":"2015-08-19T01:30:46.950Z","1.8.0":"2015-08-19T01:05:22.938Z","1.7.0":"2015-08-18T16:23:15.913Z","1.6.1":"2015-08-13T15:31:43.419Z","1.6.0":"2015-08-12T23:41:37.756Z","1.5.0":"2015-08-12T14:49:08.089Z","1.4.0":"2015-08-03T19:43:22.246Z","1.3.0":"2015-08-03T19:05:54.531Z","1.2.0":"2015-08-03T14:58:24.374Z","1.1.0":"2015-06-23T21:26:41.007Z","1.0.1":"2014-09-12T23:37:36.644Z","1.0.0":"2014-01-20T22:19:24.351Z"},"users":{},"author":{"name":"Vladimir Grinenko"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"versions":{"1.10.0":{"name":"html2bemjson","version":"1.10.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"lint":"eslint .","unit":"node test/test.js","test":"npm run unit && npm run lint","cover":"istanbul cover test/test.js","coveralls":"npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"devDependencies":{"coveralls":"^2.13.1","eslint":"^3.19.0","eslint-config-pedant":"^0.9.0","glob":"^5.0.14","istanbul":"^0.4.5"},"gitHead":"38531d4b380a3bbfaae1d8a1dcdf40d49cf8b19f","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.10.0","_shasum":"c2f5550a6ed0b34d1d95ab5831aa8d8e4db21448","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"c2f5550a6ed0b34d1d95ab5831aa8d8e4db21448","size":8568,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.10.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.10.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/html2bemjson-1.10.0.tgz_1494539311174_0.476098416140303"},"directories":{},"publish_time":1494539312140,"_hasShrinkwrap":false,"_cnpm_publish_time":1494539312140},"1.9.0":{"name":"html2bemjson","version":"1.9.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"devDependencies":{"glob":"^5.0.14"},"gitHead":"a7b9b701cea3358877012cfcea6d68a843cdbdc2","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.9.0","_shasum":"0b24298f5d4dae292045e44d5003b354a9f084f9","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"0b24298f5d4dae292045e44d5003b354a9f084f9","size":7643,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.9.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1439947846950,"_cnpm_publish_time":1439947846950,"_hasShrinkwrap":false},"1.8.0":{"name":"html2bemjson","version":"1.8.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"devDependencies":{"glob":"^5.0.14"},"gitHead":"eb6d659a458688aa4009693a41d7df69b2655e23","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.8.0","_shasum":"31767ab1396ffda16a8cd417fad584fc228ce396","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"31767ab1396ffda16a8cd417fad584fc228ce396","size":7399,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.8.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1439946322938,"_cnpm_publish_time":1439946322938,"_hasShrinkwrap":false},"1.7.0":{"name":"html2bemjson","version":"1.7.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"devDependencies":{"glob":"^5.0.14"},"gitHead":"27e62a43fc998f8548234c1553dc9835fa810cc3","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.7.0","_shasum":"0b87aa40995875b9d9cedd6e0c70d840c1cb1229","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"0b87aa40995875b9d9cedd6e0c70d840c1cb1229","size":7398,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.7.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1439914995913,"_cnpm_publish_time":1439914995913,"_hasShrinkwrap":false},"1.6.1":{"name":"html2bemjson","version":"1.6.1","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"devDependencies":{"glob":"^5.0.14"},"gitHead":"e620ba07925b97a3247ece429fe4f7bd13781049","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.6.1","_shasum":"8b98aacb6c780d5672972b8664f41aa2629d99ae","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"8b98aacb6c780d5672972b8664f41aa2629d99ae","size":19222,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.6.1.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1439479903419,"_cnpm_publish_time":1439479903419,"_hasShrinkwrap":false},"1.6.0":{"name":"html2bemjson","version":"1.6.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"gitHead":"0f5a15732e90b3bcde14f463f07370e984649002","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.6.0","_shasum":"c913fa8bd9ce8332f2e2ece6a4842d19d0fbad6a","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"c913fa8bd9ce8332f2e2ece6a4842d19d0fbad6a","size":18827,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.6.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1439422897756,"_cnpm_publish_time":1439422897756,"_hasShrinkwrap":false},"1.5.0":{"name":"html2bemjson","version":"1.5.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"gitHead":"ae971f28b4593870cb21740acc81703572a84675","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.5.0","_shasum":"d7343a23d93a066e61da3601113ce8d9f0c6b87a","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"d7343a23d93a066e61da3601113ce8d9f0c6b87a","size":5912,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.5.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1439390948089,"_cnpm_publish_time":1439390948089,"_hasShrinkwrap":false},"1.4.0":{"name":"html2bemjson","version":"1.4.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"gitHead":"354551ce3e23352bef6d5acbc364ae8c322f26aa","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.4.0","_shasum":"8873899babc9b64071cbe6c39c1ab71d81d7b2ee","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"8873899babc9b64071cbe6c39c1ab71d81d7b2ee","size":4510,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.4.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1438631002246,"_cnpm_publish_time":1438631002246,"_hasShrinkwrap":false},"1.3.0":{"name":"html2bemjson","version":"1.3.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3","stringify-object":"^2.3.0"},"gitHead":"2dec07c48a22e055699a7184d7f346933b010b60","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.3.0","_shasum":"abfe82c34e728364d145e304d8677e6526c646cd","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"abfe82c34e728364d145e304d8677e6526c646cd","size":4277,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.3.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1438628754531,"_cnpm_publish_time":1438628754531,"_hasShrinkwrap":false},"1.2.0":{"name":"html2bemjson","version":"1.2.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/bem-incubator/html2bemjson.git"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"dependencies":{"bem-naming":"^0.5.1","htmlparser2":"3.7.3"},"gitHead":"dd4311d2fbebc7f71c62c69c2832068fc107b3ad","homepage":"https://github.com/bem-incubator/html2bemjson#readme","_id":"html2bemjson@1.2.0","_shasum":"b538e2f672a749b02a9558c8554472bc9456bd84","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"b538e2f672a749b02a9558c8554472bc9456bd84","size":3356,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.2.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1438613904374,"_cnpm_publish_time":1438613904374,"_hasShrinkwrap":false},"1.1.0":{"name":"html2bemjson","version":"1.1.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/tadatuta/html2bemjson"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/tadatuta/html2bemjson/issues"},"dependencies":{"bem-naming":"^0.3.0","htmlparser2":"3.7.3"},"gitHead":"246cd6a8b8fdf82ab1673475d0c17b35748df120","homepage":"https://github.com/tadatuta/html2bemjson","_id":"html2bemjson@1.1.0","_shasum":"1921cb11a35716fe54f8fabc59d17dbd5d3c3130","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"dist":{"shasum":"1921cb11a35716fe54f8fabc59d17dbd5d3c3130","size":3098,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.1.0.tgz"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1435094801007,"_cnpm_publish_time":1435094801007,"_hasShrinkwrap":false},"1.0.1":{"name":"html2bemjson","version":"1.0.1","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/tadatuta/html2bemjson"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/tadatuta/html2bemjson/issues"},"dependencies":{"bem-naming":"^0.3.0","htmlparser2":"3.7.3"},"homepage":"https://github.com/tadatuta/html2bemjson","_id":"html2bemjson@1.0.1","_shasum":"5c4f53b068073a475429019991f2de47c596c3e1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"dist":{"shasum":"5c4f53b068073a475429019991f2de47c596c3e1","size":1339,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.0.1.tgz"},"directories":{},"publish_time":1410565056644,"_cnpm_publish_time":1410565056644,"_hasShrinkwrap":false},"1.0.0":{"name":"html2bemjson","version":"1.0.0","description":"HTML to BEMJSON convertor","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/tadatuta/html2bemjson"},"keywords":["bem","bemjson","html","html2bemjson","convertor"],"author":{"name":"Vladimir Grinenko"},"license":"MIT","bugs":{"url":"https://github.com/tadatuta/html2bemjson/issues"},"dependencies":{"htmlparser2":"3.4.0"},"_id":"html2bemjson@1.0.0","dist":{"shasum":"ebbb4366ebc9b584ae5b6f8f974f2f4bdf95d08d","size":1505,"noattachment":false,"key":"/html2bemjson/-/html2bemjson-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html2bemjson/download/html2bemjson-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"tadatuta","email":"i@tadatuta.com"},"maintainers":[{"name":"tadatuta","email":"i@tadatuta.com"}],"directories":{},"publish_time":1390256364351,"_cnpm_publish_time":1390256364351,"_hasShrinkwrap":false}},"readme":"# html2bemjson\n\nConverts HTML to [BEMJSON](https://en.bem.info/technology/bemjson/).\n\n## Installation\n```sh\nnpm install html2bemjson --save\n```\n\n## Usage\n```js\nvar html2bemjson = require('html2bemjson');\nvar html = '<div class=\"b1\"><div class=\"b1__elem1\"></div></div>';\n\nhtml2bemjson.convert(html); // BEMJSON object\n\nhtml2bemjson.stringify(html);\n// {\n//     block: 'b1',\n//     content: [\n//         {\n//             block: 'b1',\n//             elem: 'elem1'\n//         }\n//     ]\n// }\n```\n\n### Options\nBoth methods can take options object as a second argument:\n```js\nrequire('html2bemjson').stringify('<div class=\"b1 b1--mod\">', {\n    preserveComments: false,\n    naming: { elem: '__', mod: '--' }, // refer to https://en.bem.info/tools/bem/bem-naming/ for details\n    indent: '\\t'\n});\n```\n\nFor more examples please refer to `test` folder.\n","_attachments":{},"homepage":"https://github.com/bem-incubator/html2bemjson#readme","bugs":{"url":"https://github.com/bem-incubator/html2bemjsonissues"},"license":"MIT"}