Stringify usage examples: custom naming convention

node v8.17.0
version: 1.0.6
endpointsharetweet
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'});
Loading…

no comments

    sign in to comment