Skip to content

yoshuawuyts/parse-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-class stability

npm version build status test coverage downloads js-standard-style

Parse hyperscript class notation. Extracted from hyperscript.

Usage

var parseClass = require('parse-class')

var obj = parseClass('foo.bin.baz#bar')
console.log(obj)
// => {
//   name: foo,
//   class: 'bin baz',
//   id: 'bar'
// }

API

obj = parseClass(string)

Parse a string into an object.

License

MIT

About

Parse hyperscript class notation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published