Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.


How @bem/sdk.naming.entity works?

node v10.23.1
version: 22.0.0
const bemNaming = require('@bem/sdk.naming.entity'); // Write a BEM entity name to parse. bemNaming.parse('my-block__my-element');
// Define a BEM entity name to stringify. const myEntity = { block: 'my-block', elem: 'my-element', mod: { name: 'my-modifier', val: 'some-value' } }; bemNaming.stringify(myEntity)

no comments

    sign in to comment