@kokkoro/utils
Advanced tools
@@ -11,9 +11,9 @@ declare enum Color { | ||
| /** | ||
| * 彩色字体 | ||
| * 生成彩色字体 | ||
| * | ||
| * @param color - 字体颜色 | ||
| * @param type - 颜色 | ||
| * @param text - 文本 | ||
| * @returns 文本内容 | ||
| * @returns 彩色字体 | ||
| */ | ||
| export declare function colorful(color: keyof typeof Color, text: string): string; | ||
| export declare function colorful(type: keyof typeof Color, text: string): string; | ||
| export {}; |
+5
-5
@@ -12,10 +12,10 @@ var Color; | ||
| /** | ||
| * 彩色字体 | ||
| * 生成彩色字体 | ||
| * | ||
| * @param color - 字体颜色 | ||
| * @param type - 颜色 | ||
| * @param text - 文本 | ||
| * @returns 文本内容 | ||
| * @returns 彩色字体 | ||
| */ | ||
| export function colorful(color, text) { | ||
| return `\u001b[${color}m${text}\u001b[0m`; | ||
| export function colorful(type, text) { | ||
| return `\u001b[${Color[type]}m${text}\u001b[0m`; | ||
| } |
+1
-1
| { | ||
| "name": "@kokkoro/utils", | ||
| "version": "0.8.0", | ||
| "version": "0.8.1", | ||
| "description": "Utilities for kokkoro.", | ||
@@ -5,0 +5,0 @@ "engines": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3034
0.07%0
-100%