0.1.1 • Published 9 years ago

bevis v0.1.1

Weekly downloads
15
License
MIT
Repository
github
Last release
9 years ago

BEViS css class naming tool.

BEViS naming doc in Russian.

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

0.1.1

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago