{"_id":"css-list-helpers","_rev":"249734","name":"css-list-helpers","description":"Helper methods for splitting CSS lists (e.g., spaces, commas).","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"time":{"modified":"2021-06-03T16:11:02.000Z","created":"2015-10-02T02:43:59.658Z","2.0.0":"2018-05-04T14:12:22.583Z","1.0.1":"2015-10-02T05:40:10.742Z","1.0.0":"2015-10-02T02:43:59.658Z"},"users":{},"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/jedmao/css-list-helpers.git"},"versions":{"2.0.0":{"name":"css-list-helpers","version":"2.0.0","description":"Helper methods for splitting CSS lists (e.g., spaces, commas).","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf coverage dist *.log css-list-helpers-*","codecov":"codecov -f coverage/lcov.info","prebuild":"npm run clean && npm run lint","build":"tsc","prebuild:watch":"npm run prebuild","build:watch":"tsc --watch","lint":"tslint --project tsconfig.test.json","pretest":"npm run build -- --project tsconfig.test.json","test":"nyc ava --verbose","watch":"concurrently \"npm run build:watch\" \"npm test -- --watch\"","prepack":"npm test && npm run build"},"nyc":{"lines":100,"statements":100,"functions":100,"branches":100,"include":["dist/**/*.js"],"exclude":["dist/**/*.test.js"],"reporter":["lcov","text"],"cache":true,"all":true,"check-coverage":true},"repository":{"type":"git","url":"git+https://github.com/jedmao/css-list-helpers.git"},"keywords":["css","list","helpers","split","space","comma"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/css-list-helpers/issues"},"homepage":"https://github.com/jedmao/css-list-helpers#readme","devDependencies":{"ava":"^0.25.0","concurrently":"^3.5.1","nyc":"^11.7.1","rimraf":"^2.6.2","tslint":"^5.10.0","typescript":"^2.8.3"},"gitHead":"81069c64889863faaa6e1b2c8ebb6e0beb6f7842","_id":"css-list-helpers@2.0.0","_npmVersion":"6.0.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"dist":{"shasum":"7cb3d6f9ec9e5087ae49d834cead282806e8818f","size":3259,"noattachment":false,"key":"/css-list-helpers/-/css-list-helpers-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-list-helpers/download/css-list-helpers-2.0.0.tgz"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-list-helpers_2.0.0_1525443142488_0.9940673093967107"},"_hasShrinkwrap":false,"publish_time":1525443142583,"_cnpm_publish_time":1525443142583},"1.0.1":{"name":"css-list-helpers","version":"1.0.1","description":"Helper methods for splitting CSS lists (e.g., spaces, commas).","main":"index.js","scripts":{"test":"npm run cover && npm run check-coverage","cover":"istanbul cover test/index.js","check-coverage":"istanbul check-coverage"},"repository":{"type":"git","url":"git+https://github.com/jedmao/css-list-helpers.git"},"keywords":["css","list","helpers","split","space","comma"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/css-list-helpers/issues"},"homepage":"https://github.com/jedmao/css-list-helpers#readme","dependencies":{"tcomb":"^2.5.0"},"devDependencies":{"istanbul":"^0.3.21","tape":"^4.2.0"},"gitHead":"cc33b85a1dccbe605993abfe1e24b9e70166964d","_id":"css-list-helpers@1.0.1","_shasum":"fff57192202db83240c41686f919e449a7024f7d","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"dist":{"shasum":"fff57192202db83240c41686f919e449a7024f7d","size":2335,"noattachment":false,"key":"/css-list-helpers/-/css-list-helpers-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-list-helpers/download/css-list-helpers-1.0.1.tgz"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1443764410742,"_cnpm_publish_time":1443764410742,"_hasShrinkwrap":false},"1.0.0":{"name":"css-list-helpers","version":"1.0.0","description":"Helper methods for splitting CSS lists (e.g., spaces, commas).","main":"index.js","scripts":{"test":"npm run cover && npm run check-coverage","cover":"istanbul cover test/index.js","check-coverage":"istanbul check-coverage"},"repository":{"type":"git","url":"git+https://github.com/jedmao/css-list-helpers.git"},"keywords":["css","list","helpers","split","space","comma"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/css-list-helpers/issues"},"homepage":"https://github.com/jedmao/css-list-helpers#readme","dependencies":{"tcomb":"^2.5.0"},"devDependencies":{"istanbul":"^0.3.21","tape":"^4.2.0"},"gitHead":"16daced14992dca98120036cbab85661ce440602","_id":"css-list-helpers@1.0.0","_shasum":"da937995854f16ab8de3672f4da8911b3a6d37d5","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"dist":{"shasum":"da937995854f16ab8de3672f4da8911b3a6d37d5","size":2288,"noattachment":false,"key":"/css-list-helpers/-/css-list-helpers-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-list-helpers/download/css-list-helpers-1.0.0.tgz"},"maintainers":[{"name":"jedmao","email":"jed.hunsaker+npm@gmail.com"}],"directories":{},"publish_time":1443753839658,"_cnpm_publish_time":1443753839658,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/jedmao/css-list-helpers#readme","bugs":{"url":"https://github.com/jedmao/css-list-helpers/issues"},"license":"MIT"}