parse-bem-identifier
v4.0.0
Published
Parse B__E_M identifier
Downloads
5
Readme
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:
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 ([email protected])