معرفی شرکت ها


chalk-pipe-6.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Create chalk style schemes with simpler style strings
ویژگی مقدار
سیستم عامل -
نام فایل chalk-pipe-6.0.0
نام chalk-pipe
نسخه کتابخانه 6.0.0
نگهدارنده ['litomore']
ایمیل نگهدارنده ['litomore@gmail.com']
نویسنده LitoMore
ایمیل نویسنده -
آدرس صفحه اصلی git+https://github.com/LitoMore/chalk-pipe.git
آدرس اینترنتی https://github.com/LitoMore/chalk-pipe#readme
مجوز MIT
# chalk-pipe [![](https://github.com/LitoMore/chalk-pipe/workflows/Node/badge.svg)](https://github.com/LitoMore/chalk-pipe/actions) [![](https://img.shields.io/npm/v/chalk-pipe.svg)](https://www.npmjs.com/package/chalk-pipe) [![](https://img.shields.io/npm/l/chalk-pipe.svg)](https://github.com/LitoMore/chalk-pipe/blob/main/LICENSE) [![](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray)](https://github.com/xojs/xo) Create chalk style schemes with simpler style strings ![](https://raw.githubusercontent.com/LitoMore/chalk-pipe/main/screenshot.png) ## Install ```sh npm install chalk-pipe ``` ## Usage ```js import chalkPipe from 'chalk-pipe'; console.log(chalkPipe('blue.bold')('Hello world!')); ``` Use dot `.` to separeate multiple styles: ```js const link = chalkPipe('blue.underline'); const error = chalkPipe('bgRed.#cccccc'); const warning = chalkPipe('orange.bold'); console.log(link('Link!')); console.log(error('Error!')); console.log(warning('Warning!')); ``` `chalkPipe` is also `chalk`: ```js const blue = chalkPipe('blue'); const link = blue.underline; console.log(link('Link!')); ``` ### Use custom chalk ```js import chalkPipe, {chalk, Chalk} from 'chalk-pipe'; const customChalk = new Chalk({level: 1}); console.log(chalkPipe('underline', chalk.blue)('Link!')); console.log(chalkPipe('underline', customChalk.blue)('Link!')); ``` ## Built-in Chalk All Chalk exported functions, variables, and declarations are exposed for convenience. This can be useful if you want to use `chalk` directly. ```js import {chalk, Chalk} from 'chalk-pipe'; const customChalk = new Chalk({level: 0}); console.log(chalk.blue('Hello')) console.log(customChalk.green('World')); ``` ## API ### chalkPipe(styles)(text) Example: ```js chalkPipe('blue.underline')('Link!'); ``` ### chalkPipe(styles, chalk)(text) Example: ```js import {Chalk} from 'chalk-pipe'; const chalk = new Chalk({level: 1}); chalkPipe('underline', chalk.blue)('Link!'); ``` ### keywordNames All supported keyword names are exposed as array of strings for convenience. ```js import {keywordNames} from 'chalk-pipe'; console.log(keywordNames.includes('pink')); //=> true ``` ## Supported styles - [Modifiers](https://github.com/chalk/chalk#modifiers) - [Colors](https://github.com/chalk/chalk#colors) - [Background colors](https://github.com/chalk/chalk#background-colors) - [Hex triplet](https://en.wikipedia.org/wiki/Web_colors#Hex_triplet) - [CSS keywords](https://www.w3.org/wiki/CSS/Properties/color/keywords) ## Related - [chalk-pipe-cli](https://github.com/LitoMore/chalk-pipe-cli) - CLI for this module - [ink-color-pipe](https://github.com/LitoMore/ink-color-pipe) - Ink component for this module - [inquirer-chalk-pipe](https://github.com/LitoMore/inquirer-chalk-pipe) - A inquirer plugin for input chalk-pipe style strings - [chalk](https://github.com/chalk/chalk) - Output colored text to terminal ## License MIT © [LitoMore](https://github.com/LitoMore)


نیازمندی

مقدار نام
^5.1.2 chalk


زبان مورد نیاز

مقدار نام
19.0.1 Npm


نحوه نصب


نصب پکیج tgz chalk-pipe-6.0.0:

    npm install chalk-pipe-6.0.0.tgz