{"_id":"chalk-pipe","_rev":"574692","name":"chalk-pipe","description":"Create chalk style schemes with simpler style strings","dist-tags":{"latest":"5.1.1"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"time":{"modified":"2021-08-18T07:39:58.000Z","created":"2017-08-23T18:50:53.938Z","5.1.1":"2021-04-23T12:21:21.343Z","5.1.0":"2021-04-23T12:16:02.158Z","5.0.0":"2021-01-25T10:53:58.518Z","4.0.0":"2020-04-29T12:59:31.306Z","3.0.0":"2019-11-09T12:57:40.269Z","2.0.0":"2018-09-06T03:56:03.858Z","1.3.0":"2018-08-13T16:15:31.744Z","1.2.0":"2018-01-19T05:37:45.434Z","1.1.0":"2017-09-08T02:10:41.310Z","1.0.0":"2017-08-23T18:50:53.938Z"},"users":{},"author":{"name":"LitoMore"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"versions":{"5.1.1":{"name":"chalk-pipe","version":"5.1.1","description":"Create chalk style schemes with simpler style strings","type":"module","exports":"./dist/index.js","types":"dist","engines":{"node":">=12"},"scripts":{"build":"tsc","pretest":"del-cli dist && npm run build","test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"@ava/typescript":"^1.1.1","@sindresorhus/tsconfig":"^1.0.2","ava":"^3.15.0","del-cli":"^3.0.1","ts-node":"^9.1.1","typescript":"^4.2.4","xo":"^0.38.2"},"dependencies":{"chalk":"^4.1.0"},"xo":{"prettier":true,"rules":{"unicorn/import-index":["error",{"ignoreImports":true}]}},"ava":{"files":["source/test.ts"],"extensions":{"ts":"module"},"nonSemVerExperiments":{"configurableModuleFormat":true},"nodeArguments":["--loader=ts-node/esm"]},"gitHead":"4aecf8961e415fb8e2b3296aa5ea590376bbf518","_id":"chalk-pipe@5.1.1","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"6305747ace9ff37c318dcf8c0cf419475449ee06","size":5387,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-5.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-5.1.1.tgz"},"_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"directories":{},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe_5.1.1_1619180481232_0.5605439065142299"},"_hasShrinkwrap":false,"publish_time":1619180481343,"_cnpm_publish_time":1619180481343},"5.1.0":{"name":"chalk-pipe","version":"5.1.0","description":"Create chalk style schemes with simpler style strings","type":"module","exports":"./dist/index.js","types":"dist","engines":{"node":">=12"},"scripts":{"build":"tsc","pretest":"del-cli dist && npm run build","test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"@ava/typescript":"^1.1.1","@sindresorhus/tsconfig":"^1.0.2","ava":"^3.15.0","del-cli":"^3.0.1","ts-node":"^9.1.1","typescript":"^4.2.4","xo":"^0.38.2"},"dependencies":{"chalk":"^4.1.0"},"xo":{"prettier":true,"rules":{"unicorn/import-index":["error",{"ignoreImports":true}]}},"ava":{"files":["source/test.ts"],"extensions":{"ts":"module"},"nonSemVerExperiments":{"configurableModuleFormat":true},"nodeArguments":["--loader=ts-node/esm"]},"gitHead":"b56ca06d30d1742948e7b04396699974b9f89d43","_id":"chalk-pipe@5.1.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"7a329c0d7b3fd8b492193e8d35f4dfd0559d8bf1","size":28647,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-5.1.0.tgz"},"_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"directories":{},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe_5.1.0_1619180161946_0.23856967722654576"},"_hasShrinkwrap":false,"publish_time":1619180162158,"_cnpm_publish_time":1619180162158},"5.0.0":{"name":"chalk-pipe","version":"5.0.0","description":"Create chalk style schemes with simpler style strings","type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && nyc ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^3.15.0","coveralls":"^3.1.0","nyc":"^15.1.0","xo":"^0.37.1"},"dependencies":{"chalk":"^4.1.0"},"gitHead":"a34ccab559cc0e9150c5d230689d021e735ec858","_id":"chalk-pipe@5.0.0","_nodeVersion":"15.6.0","_npmVersion":"6.14.11","dist":{"shasum":"003d6aaaf2744b431582b2be7c8669633db8653a","size":28302,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-5.0.0.tgz"},"_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"directories":{},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe_5.0.0_1611572038396_0.8232131718590321"},"_hasShrinkwrap":false,"publish_time":1611572038518,"_cnpm_publish_time":1611572038518},"4.0.0":{"name":"chalk-pipe","version":"4.0.0","description":"Apply a color scheme in a style pipe","main":"index.js","scripts":{"test":"xo && nyc ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^3.8.1","coveralls":"^3.1.0","nyc":"^15.0.1","xo":"^0.30.0"},"dependencies":{"chalk":"^4.0.0","css-color-names":"^1.0.0"},"gitHead":"5bff0f829f9a1ff5c17d2f691da9b089f9680f86","_id":"chalk-pipe@4.0.0","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"084c122c0f42db656036d331bfba70396cbe1962","size":26628,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-4.0.0.tgz"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe_4.0.0_1588165171191_0.1221481616127964"},"_hasShrinkwrap":false,"publish_time":1588165171306,"_cnpm_publish_time":1588165171306},"3.0.0":{"name":"chalk-pipe","version":"3.0.0","description":"Apply a color scheme in a style pipe","main":"index.js","scripts":{"test":"xo && nyc ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^1.0.1","coveralls":"^3.0.2","nyc":"^13.1.0","xo":"^0.25.3"},"dependencies":{"chalk":"^3.0.0","css-color-names":"^1.0.0"},"gitHead":"58e7b593fd662d5a20550902e21e7b8ea86a4c20","_id":"chalk-pipe@3.0.0","_nodeVersion":"12.12.0","_npmVersion":"6.13.0","dist":{"shasum":"57dfd9b9dae6615d32a2dd611ac691f8aff47504","size":26629,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-3.0.0.tgz"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe_3.0.0_1573304260082_0.7826448889598516"},"_hasShrinkwrap":false,"publish_time":1573304260269,"_cnpm_publish_time":1573304260269},"2.0.0":{"name":"chalk-pipe","version":"2.0.0","description":"Apply a color scheme in a style pipe","main":"index.js","scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^1.0.0-beta.8","xo":"^0.23.0"},"dependencies":{"chalk":"^2.4.1","css-color-names":"0.0.4"},"gitHead":"11dbec578587b7993fb26cf910ed232063af3047","_id":"chalk-pipe@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"dist":{"shasum":"628b57f973c644ee94e83113d522af1401f5aec2","size":26362,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-2.0.0.tgz"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe_2.0.0_1536206163744_0.20130910690197656"},"_hasShrinkwrap":false,"publish_time":1536206163858,"_cnpm_publish_time":1536206163858},"1.3.0":{"name":"chalk-pipe","version":"1.3.0","description":"Apply a color scheme in a style pipe","main":"index.js","scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^0.22.0","xo":"^0.18.2"},"dependencies":{"chalk":"^2.4.1","css-color-names":"0.0.4"},"gitHead":"07ef33b16492c73c97b74f542039887a8d67fe99","_id":"chalk-pipe@1.3.0","_npmVersion":"6.3.0","_nodeVersion":"10.8.0","_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"dist":{"shasum":"a6fcfeb013bfb8cb5fd6e0164a167b22cb44cebd","size":26358,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-1.3.0.tgz"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe_1.3.0_1534176931635_0.7772373292251833"},"_hasShrinkwrap":false,"publish_time":1534176931744,"_cnpm_publish_time":1534176931744},"1.2.0":{"name":"chalk-pipe","version":"1.2.0","description":"Apply a color scheme in a style pipe","main":"index.js","scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^0.22.0","xo":"^0.18.2"},"dependencies":{"chalk":"^2.3.0","css-color-names":"0.0.4"},"gitHead":"9ebb3c39620a6e70b56c20edf24171e3761a5266","_id":"chalk-pipe@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"dist":{"shasum":"bcd3bc08cd38798d0d92f154b8bfc78998bc533d","size":26436,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-1.2.0.tgz"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe-1.2.0.tgz_1516340265365_0.951741895172745"},"directories":{},"publish_time":1516340265434,"_hasShrinkwrap":false,"_cnpm_publish_time":1516340265434},"1.1.0":{"name":"chalk-pipe","version":"1.1.0","description":"Apply a color scheme in a style pipe","main":"index.js","scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^0.22.0","xo":"^0.18.2"},"dependencies":{"chalk":"^2.1.0","css-color-names":"0.0.4"},"gitHead":"81cc9627b9629a3b993e5d686596cc203f72509b","_id":"chalk-pipe@1.1.0","_npmVersion":"5.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"dist":{"shasum":"7f2e8689216501b8bbf10586fe0d4a26b613442d","size":26409,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-1.1.0.tgz"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe-1.1.0.tgz_1504836641217_0.18631768319755793"},"directories":{},"publish_time":1504836641310,"_hasShrinkwrap":false,"_cnpm_publish_time":1504836641310},"1.0.0":{"name":"chalk-pipe","version":"1.0.0","description":"Apply a color scheme in a style pipe","main":"index.js","scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+https://github.com/LitoMore/chalk-pipe.git"},"author":{"name":"LitoMore"},"license":"MIT","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","devDependencies":{"ava":"^0.22.0","xo":"^0.18.2"},"dependencies":{"chalk":"^2.1.0","css-color-names":"0.0.4"},"gitHead":"0f919e186e21d01181cff1a098ad743b7bcc6d6c","_id":"chalk-pipe@1.0.0","_npmVersion":"5.4.0","_nodeVersion":"8.4.0","_npmUser":{"name":"litomore","email":"litomore@gmail.com"},"dist":{"shasum":"474a419ab00bf1ac9ddc2c750d3194d3a5a37d6c","size":26163,"noattachment":false,"key":"/chalk-pipe/-/chalk-pipe-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chalk-pipe/download/chalk-pipe-1.0.0.tgz"},"maintainers":[{"name":"litomore","email":"litomore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chalk-pipe-1.0.0.tgz_1503514253775_0.22174911317415535"},"directories":{},"publish_time":1503514253938,"_hasShrinkwrap":false,"_cnpm_publish_time":1503514253938}},"readme":"# chalk-pipe\n\n[![](https://github.com/LitoMore/chalk-pipe/workflows/Node/badge.svg)](https://github.com/LitoMore/chalk-pipe/actions)\n[![](https://img.shields.io/npm/v/chalk-pipe.svg)](https://www.npmjs.com/package/chalk-pipe)\n[![](https://img.shields.io/npm/l/chalk-pipe.svg)](https://github.com/LitoMore/chalk-pipe/blob/master/LICENSE)\n[![](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n\nCreate chalk style schemes with simpler style strings\n\n![](https://raw.githubusercontent.com/LitoMore/chalk-pipe/master/screenshot.png)\n\n## Install\n\n```bash\n$ npm install chalk-pipe\n```\n\n## Usage\n\n```javascript\nimport chalkPipe from 'chalk-pipe';\n\nconsole.log(chalkPipe('blue.bold')('Hello world!'));\n```\n\nUse dot `.` to separeate multiple styles:\n\n```javascript\nconst link = chalkPipe('blue.underline');\nconst error = chalkPipe('bgRed.#cccccc');\nconst warning = chalkPipe('orange.bold');\n\nconsole.log(link('Link!'));\nconsole.log(error('Error!'));\nconsole.log(warning('Warning!'));\n```\n\n`chalkPipe` is also `chalk`:\n\n```javascript\nconst blue = chalkPipe('blue');\nconst link = blue.underline;\n\nconsole.log(link('Link!'));\n```\n\n### Use custom chalk\n\n```javascript\nimport chalk from 'chalk';\nimport chalkPipe from 'chalk-pipe';\n\nconst text =  chalkPipe('underline', chalk.blue)('Link!');\n\nconsole.log(text);\n```\n\n## API\n\n### chalkPipe(styles)(text)\n\nExample:\n\n ```javascript\n chalkPipe('blue.underline')('Link!');\n ```\n\n### chalkPipe(styles, chalk)(text)\n\nExample:\n\n```javascript\nimport chalk from 'chalk';\n\nchalk.enable = true;\n\nchalkPipe('underline', chalk.blue)('Link!');\n```\n\n## Valid styles\n\n- [Modifiers](https://github.com/chalk/chalk#modifiers)\n- [Colors](https://github.com/chalk/chalk#colors)\n- [Background colors](https://github.com/chalk/chalk#background-colors)\n- [Hex triplet](https://en.wikipedia.org/wiki/Web_colors#Hex_triplet)\n- [CSS keywords](https://www.w3.org/wiki/CSS/Properties/color/keywords)\n\n## Related\n\n- [chalk-pipe-cli](https://github.com/LitoMore/chalk-pipe-cli) - CLI for this module\n- [ink-color-pipe](https://github.com/LitoMore/ink-color-pipe) - Ink component for this module\n- [inquirer-chalk-pipe](https://github.com/LitoMore/inquirer-chalk-pipe) - A inquirer plugin for input chalk-pipe style strings\n- [chalk](https://github.com/chalk/chalk) - Output colored text to terminal\n\n## License\n\nMIT © [LitoMore](https://github.com/LitoMore)\n","_attachments":{},"homepage":"https://github.com/LitoMore/chalk-pipe#readme","bugs":{"url":"https://github.com/LitoMore/chalk-pipe/issues"},"license":"MIT"}