Forum

Methodology

Toolbox

Platform

Community

bem-fs-scheme

BEM file system schemes.

Supported schemes

Usage

var entity = {
    block: 'b1',
    elem: 'e1',
    modName: 'm1',
    modVal: 'v1'
};

var tech = 'js';

var options = {
    naming: {
        elem: '__',
        mod: '-'
    }
}; // this is default value

require('bem-fs-scheme')('nested').path(entity, tech, options); // b1/__e1/_m1/b1__e1_m1_v1.js

License

Code and documentation © 2015 YANDEX LLC. Code released under the Mozilla Public License 2.0.

If you notice a mistake or want something to supplement the article, you can always write to us at GitHub, or correct an article using prose.io.