{"id":16349518,"url":"https://github.com/jednano/css-list-helpers","last_synced_at":"2026-04-10T21:04:07.062Z","repository":{"id":57745308,"uuid":"43508092","full_name":"jednano/css-list-helpers","owner":"jednano","description":"Helper methods for splitting CSS lists (e.g., spaces, commas).","archived":false,"fork":false,"pushed_at":"2018-05-04T14:10:19.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T13:50:47.625Z","etag":null,"topics":["comma","css","helpers","list","npm","space","split"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jednano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-01T16:39:19.000Z","updated_at":"2022-12-04T03:25:14.000Z","dependencies_parsed_at":"2022-08-30T14:11:09.301Z","dependency_job_id":null,"html_url":"https://github.com/jednano/css-list-helpers","commit_stats":null,"previous_names":["jedmao/css-list-helpers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fcss-list-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fcss-list-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fcss-list-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fcss-list-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jednano","download_url":"https://codeload.github.com/jednano/css-list-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239590283,"owners_count":19664453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comma","css","helpers","list","npm","space","split"],"created_at":"2024-10-11T01:00:08.009Z","updated_at":"2025-11-11T14:30:14.323Z","avatar_url":"https://github.com/jednano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# css-list-helpers\n\n[![NPM version](http://img.shields.io/npm/v/css-list-helpers.svg?style=flat)](https://www.npmjs.org/package/css-list-helpers)\n[![npm license](http://img.shields.io/npm/l/css-list-helpers.svg?style=flat-square)](https://www.npmjs.org/package/css-list-helpers)\n[![Travis Build Status](https://img.shields.io/travis/jedmao/css-list-helpers.svg?label=unix)](https://travis-ci.org/jedmao/css-list-helpers)\n[![codecov](https://codecov.io/gh/jedmao/css-list-helpers/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/css-list-helpers)\n\n[![npm](https://nodei.co/npm/css-list-helpers.svg?downloads=true)](https://nodei.co/npm/css-list-helpers/)\n\nHelper methods for splitting CSS lists (i.e., by spaces or commas), extracted from [PostCSS#list](https://github.com/postcss/postcss/blob/master/lib/list.es6).\n\n## Installation\n\n```\n$ npm install css-list-helpers [--save[-dev]]\n```\n\n## Usage\n\n```js\nvar listHelpers = require('css-list-helpers');\n\nlistHelpers.splitBySpaces(' 0 a(b / c) \"d e\" ');\n// ['0', 'a(b / c)', '\"d e\"']\n\nlistHelpers.splitByCommas(' 0, a(b / c), \"d e\" ');\n// ['0', 'a(b / c)', '\"d e\"']\n\nlistHelpers.split('a/fn(b / c)', ['/']);\n// ['a', 'fn(b / c)']\n```\n\n### ES6/2015 import\n\n```ts\nimport * as listHelpers from 'css-list-helpers';\n```\n\n## Docs\n\nThis project provides first-class TypeScript support via generated TypeScript\ndefinitions, included with the package. As such, you shouldn't have to\nlook-up documentation in your editor, so long as your editor supports\nTypeScript.\n\n## Testing\n\n```\n$ npm test\n```\n\nThis will run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fcss-list-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjednano%2Fcss-list-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fcss-list-helpers/lists"}