posthtml-bemjson

1.0.1 • Public • Published

PostHTML-bemjson

npm version

PostHTML plugin to convert PostHTML tree to Bemjson tree

Usage

var posthtml = require('posthtml'),
    html = '<html><head><title>Wow</title></head><body><div class="button"><div class="button__text">Text</div></div></body></html>';
 
var bemjson = posthtml()
    .use(require('posthtml-bemjson'))
    .process(html, { sync: true }).tree;

Test

npm run test

Package Sidebar

Install

npm i posthtml-bemjson

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • voischev