Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)