css-list-helpers

  • Version 2.0.0
  • Published
  • 8.33 kB
  • No dependencies
  • MIT license

Install

npm i css-list-helpers
yarn add css-list-helpers
pnpm add css-list-helpers

Overview

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

Index

Functions

function split

split: (
value: string,
separators: string[],
{ last }?: { last?: boolean }
) => string[];
  • Splits a CSS declaration value (shorthand) using provided separators as the delimiters.

function splitByCommas

splitByCommas: (value: string) => string[];
  • Splits a CSS declaration value (shorthand) using commas as the delimiters.

function splitBySpaces

splitBySpaces: (value: string) => string[];
  • Splits a CSS declaration value (shorthand) using whitespace characters as the delimiters.

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (6)

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/css-list-helpers.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/css-list-helpers)
  • HTML
    <a href="https://www.jsdocs.io/package/css-list-helpers"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>