split-css-selector

1.0.0 • Public • Published

split-css-selector

Build status NPM version js-xo-style

Split a comma separated CSS selector list into an array of selectors

Installation

Install split-css-selector using npm:

npm install --save split-css-selector

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i split-css-selector

Weekly Downloads

22

Version

1.0.0

License

MIT

Last publish

Collaborators

  • joakimbeng