JSPM

split-css-selector

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q58613F
  • License MIT

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

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

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