Get every class in a CSS selector
Returns every class from a CSS selector, as an array.
var classes = require('css-selector-classes'); classes('article.hello > .red') // returns ['hello', 'red']
npm install css-selector-classes
Of course you’re getting around to it, but you probably should get around to it soon. Buy a ticket »
how? learn more