README
bem-naming-transformations
BEM naming notation transformations.
Usage
const BemEntityName = require('@bem/sdk.entity-name');
const transform = require('bem-naming-transformations');
const originEntity = BemEntityName.create({ block: 'my-block', elem: 'some-elem' });
const reactEntity = transform(originEntity, { naming: 'react' });
console.log(reactEntity); // { block: 'MyBlock', elem: 'SomeElem' }
Options
- naming
- transforms
- blacklist
- whitelist
For examples please refer to specs.