parse-class

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i parse-class

Weekly Downloads

0

Version

1.0.0

License

none

Last publish

Collaborators

  • yoshuawuyts