split-css-selector
v1.0.0
Published
Split a comma separated CSS selector list into an array of selectors
Readme
split-css-selector
Split a comma separated CSS selector list into an array of selectors
Installation
Install split-css-selector using npm:
npm install --save split-css-selectorUsage
Module usage
var splitCssSelector = require('split-css-selector');
splitCssSelector('.class, .class2');
// ['.class', '.class2']See test/test.js for more examples.
API
splitSelectors(selectors)
| Name | Type | Description |
|------|------|-------------|
| selectors | String | The list of selectors to split |
Returns: Array
License
MIT © Joakim Carlstein
