https://github.com/goto-bus-stop/split-selector
Split a CSS selector group into its individual selectors
https://github.com/goto-bus-stop/split-selector
Last synced: 4 months ago
JSON representation
Split a CSS selector group into its individual selectors
- Host: GitHub
- URL: https://github.com/goto-bus-stop/split-selector
- Owner: goto-bus-stop
- License: mit
- Created: 2015-07-25T18:57:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-30T13:35:43.000Z (almost 10 years ago)
- Last Synced: 2025-02-14T06:37:47.250Z (5 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# split-selector
Split a CSS selector group into its individual selectors.
[](https://nodei.co/npm/split-selector)
## Usage
```js
splitSelector('.red, .blue')
// -> [ '.red', '.blue' ]splitSelector('a[title="Someday, Somewhere"], strong')
//-> [ 'a[title="Someday, Somewhere"]', 'strong' ]
```## License
[MIT](./LICENSE)