css-selector-classes

Get every class in a CSS selector

css-selector-classes

Returns every class from a CSS selector, as an array.

example

var classes = require('css-selector-classes');
 
classes('article.hello > .red') // returns ['hello', 'red'] 

install

npm install css-selector-classes

license

MIT