css-list-helpers
Helper methods for splitting CSS lists (e.g., spaces, commas).
Last updated 7 years ago by jedmao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install css-list-helpers 
SYNC missed versions from official npm registry.

css-list-helpers

NPM version npm license Travis Build Status codecov

npm

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.

Current Tags

  • 2.0.0                                ...           latest (7 years ago)

3 Versions

  • 2.0.0                                ...           7 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 2
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE