Comparing version 0.0.2 to 0.0.3
@@ -105,3 +105,3 @@ declare const foreAnsiCode: { | ||
*/ | ||
declare const ColorCC: ColorTool; | ||
export declare const ColorCC: ColorTool; | ||
export default ColorCC; |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createColorfulTool = exports.colorify = void 0; | ||
exports.ColorCC = exports.createColorfulTool = exports.colorify = void 0; | ||
/** | ||
@@ -264,5 +264,5 @@ * 仿照 colors的api,借助ansi字符,做一个带有颜色的输出 | ||
*/ | ||
const ColorCC = createColorfulTool(true); | ||
exports.ColorCC = createColorfulTool(true); | ||
// | ||
exports.default = ColorCC; | ||
exports.default = exports.ColorCC; | ||
/* | ||
@@ -269,0 +269,0 @@ // com |
{ | ||
"name": "color-cc", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Get colors in your node.js console, support commonjs / typescript / esnext, simplified version of colors", | ||
@@ -5,0 +5,0 @@ "author": "Froguard <figure_wf@163.com>", |
@@ -22,2 +22,3 @@ # color-cc | ||
const ColorCC = require('color-cc').default; | ||
// const { ColorCC } = require('color-cc'); | ||
@@ -24,0 +25,0 @@ console.log(ColorCC.green('hello')); |
18749
113