4.0.0 • Published 11 years ago
parse-bem-identifier v4.0.0
parse-bem-identifier

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:
blockmodmodValelemelemModelemVal
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)