Skip to content

Experience-Monks/parse-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-selector

experimental

Pass in a selector will return an array which describes the parts of the selector

Usage

NPM

var parse = require('parse-selector');

var info = parse('div#id div.classA .classB');

// info will look like this:
// [
//     {
//         el: 'div',
//         id: '#id'
//     },
//     {
//         el: 'div',
//         className: '.classA'
//     },
//     {
//         className: '.classB'
//     }
// ]

License

MIT, see LICENSE.md for details.

About

Pass in a selector will return an array which describes the parts of the selector

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published