Package Exports
- split-css-selector
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (split-css-selector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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