ansi-styles:ANSI转义码,用于在终端中设置字符串样式

时间:2021-04-28 14:01:13
【文件属性】:
文件名称:ansi-styles:ANSI转义码,用于在终端中设置字符串样式
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-28 14:01:13
chalk JavaScript ansi样式 用于在终端中设置字符串样式 您可能希望使用高级模块来设置字符串样式。 安装 $ npm install ansi-styles 用法 import styles from 'ansi-styles' ; console . log ( ` ${ styles . green . open } Hello world! ${ styles . green . close } ` ) ; // Color conversion between 256/truecolor // NOTE: When converting from truecolor to 256 colors, the original color // may be degraded to fit the new color palette. This means terminals //
【文件预览】:
ansi-styles-main
----index.test-d.ts(4KB)
----.gitattributes(19B)
----.github()
--------funding.yml(55B)
--------security.md(179B)
--------workflows()
----license(1KB)
----screenshot.js(605B)
----test()
--------test.js(3KB)
----index.d.ts(4KB)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(5KB)
----readme.md(4KB)
----package.json(1022B)
----screenshot.svg(2KB)

网友评论