bevis
v0.1.1
Published
BEViS css class naming tool
Downloads
164
Readme
BEViS css class naming tool.
Installation
$ npm install bevis
Example
var Block = require('bevis');
var block1 = new Block('butthead');
var block2 = new Block('beavis', 'great-cornholio');
block1.name();
block1.elem();
block1.name(); // butthead
block1.name('drunk', 'fallen'); // butthead _drunk _fallen
block1.elem('hair'); // butthead__hair
block1.elem('hair', 'disheveled', 'dirt'); // butthead__hair _disheveled _dirt
block2.name(); // beavis_great-cornholio
block2.name('drunk', 'fallen'); // beavis_great-cornholio _drunk _fallen
block2.elem('hair'); // beavis_great-cornholio__hair
block2.elem('hair', 'disheveled', 'dirt'); // beavis_great-cornholio__hair _disheveled _dirt
Running tests
$ npm run tests
Authors
License
MIT