bevis

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i bevis

Weekly Downloads

36

Version

0.1.1

License

MIT

Last publish

Collaborators

  • fi11