Package Exports
- css-list-helpers
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 (css-list-helpers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
css-list-helpers
Helper methods for splitting CSS lists (i.e., by spaces or commas), extracted from PostCSS#list.
Installation
$ npm install css-list-helpers [--save[-dev]]
Usage
var listHelpers = require('css-list-helpers');
listHelpers.splitBySpaces(' 0 a(b / c) "d e" ');
// ['0', 'a(b / c)', '"d e"']
listHelpers.splitByCommas(' 0, a(b / c), "d e" ');
// ['0', 'a(b / c)', '"d e"']
listHelpers.split('a/fn(b / c)', ['/']);
// ['a', 'fn(b / c)']
ES6/2015 import
import * as listHelpers from 'css-list-helpers';
Docs
This project provides first-class TypeScript support via generated TypeScript definitions, included with the package. As such, you shouldn't have to look-up documentation in your editor, so long as your editor supports TypeScript.
Testing
$ npm test
This will run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.