Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 27 days 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-30T13:35:43.000Z (over 9 years ago)
- Last Synced: 2024-10-05T16:26:13.319Z (about 1 month 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.
[![NPM](https://nodei.co/npm/split-selector.png?compact=true)](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)