Socket
Socket
Sign inDemoInstall

css-list-helpers

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-list-helpers

Helper methods for splitting CSS lists (e.g., spaces, commas).


Version published
Weekly downloads
26K
increased by7.72%
Maintainers
1
Install size
8.98 kB
Created
Weekly downloads
 

Changelog

Source

2.0.0

  • Breaking: Remove tcomb dependency (use typeof instead). The only breaking change about this is that it will provide different error messages, which could potentially break existing implementations. Most people should be able to upgrade w/o changes to their code.
  • Convert source code into TypeScript.
  • Provide TypeScript-generated type definitions.

Readme

Source

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.

Keywords

FAQs

Last updated on 04 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc