1.0.2 • Published 8 years ago

util-identifier v1.0.2

Weekly downloads
13
License
-
Repository
-
Last release
8 years ago

#util-identifier

Get an identifier function to assist in generating classes, etc.

var identifier = require('util-identifier')('MyThing');

identifier('component'); // 'MyThing-component'
identifier('component', 'state'); // 'MyThing-component--state'
identifier('component', 'state', '.'); // '.MyThing-component--state'
identifier('component', null, '.'); // '.MyThing-component'

Test

npm test
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago