1.3.0 • Published 4 years ago

bem-naming-transformations v1.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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.