Closed blond closed 9 years ago
It is necessary to allow users to specify bem-naming options.
bem-naming
var html2bemjson = require('html2bemjson'); var html = '<div class="block--mod"></div>'; html2bemjson.convert(html, { naming: { elem: '__', mod: '--' } }); // { block: 'block' mods: { mod: true }
It is necessary to allow users to specify
bem-naming
options.