4.0.0 • Published 10 years ago

parse-bem-identifier v4.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

parse-bem-identifier NPM version Build Status Dependency Status

Parsing B__E_M identifier.

You can learn about identifier structure from tests.

API

parseBemIdentifier(string, options)

Parses string as BEM identifier and returns object, that contains:

  • block
  • mod
  • modVal
  • elem
  • elemMod
  • elemVal

options

short

Type: Boolean
Default: false

If true, then elemMod will be stored in mod, modVal and elemVal will be stored in val.

License

MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)

4.0.0

10 years ago

3.0.0

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago