Stringify usage examples: custom naming convention
const convention = {
delims: {
elem: '_EL-',
mod: {
name: '_MOD-',
val: '-'
}}};
const stringify = require('@bem/sdk.naming.entity.stringify')(convention);
stringify({ block: 'myBlock',
elem: 'myElement',
mod: 'myModifier'});
no comments