tinyrainbow
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,3 +0,3 @@ | ||
import { C as Colors } from './index-b9b7ae71.js'; | ||
export { F as Formatter, c as createColors, g as getDefaultColors, i as isSupported } from './index-b9b7ae71.js'; | ||
import { C as Colors } from './index-6483f34e.js'; | ||
export { F as Formatter, c as createColors, g as getDefaultColors, i as isSupported } from './index-6483f34e.js'; | ||
@@ -4,0 +4,0 @@ declare const _default: Colors; |
@@ -5,3 +5,3 @@ import { | ||
c as o | ||
} from "./chunk-24I4KDCO.js"; | ||
} from "./chunk-5WCZOS7T.js"; | ||
@@ -8,0 +8,0 @@ // src/browser.ts |
@@ -1,3 +0,3 @@ | ||
import { C as Colors } from './index-b9b7ae71.js'; | ||
export { F as Formatter, c as createColors, g as getDefaultColors, i as isSupported } from './index-b9b7ae71.js'; | ||
import { C as Colors } from './index-6483f34e.js'; | ||
export { F as Formatter, c as createColors, g as getDefaultColors, i as isSupported } from './index-6483f34e.js'; | ||
@@ -4,0 +4,0 @@ declare const _default: Colors; |
@@ -5,3 +5,3 @@ import { | ||
c as o | ||
} from "./chunk-24I4KDCO.js"; | ||
} from "./chunk-5WCZOS7T.js"; | ||
@@ -8,0 +8,0 @@ // src/node.ts |
{ | ||
"name": "tinyrainbow", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A small library to print colourful messages.", | ||
"type": "module", | ||
@@ -10,9 +11,7 @@ "main": "./dist/node.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist/node.d.ts", | ||
"node": "./dist/node.js", | ||
"browser": "./dist/browser.js", | ||
"import": "./dist/browser.js", | ||
"default": "./dist/browser.js" | ||
} | ||
"types": "./dist/node.d.ts", | ||
"node": "./dist/node.js", | ||
"browser": "./dist/browser.js", | ||
"import": "./dist/browser.js", | ||
"default": "./dist/browser.js" | ||
}, | ||
@@ -19,0 +18,0 @@ "files": [ |
# tinyrainbow | ||
> a fork of [picocolors](https://www.npmjs.com/package/picocolors), but browser friendly | ||
Output your colorful messages in the terminal or browser console that support ANSI colors (Chrome engines). | ||
A small (`~ 6 kB` unpacked) fork of [picocolors](https://www.npmjs.com/package/picocolors) with support for `exports` field. | ||
Supports only ESM. | ||
## Installing | ||
```bash | ||
// with npm | ||
# with npm | ||
$ npm install -D tinyrainbow | ||
// with pnpm | ||
$ pnpm install -D tinyrainbow | ||
# with pnpm | ||
$ pnpm add -D tinyrainbow | ||
// with yarn | ||
$ yarn install -D tinyrainbow | ||
# with yarn | ||
$ yarn add -D tinyrainbow | ||
``` | ||
@@ -23,3 +27,3 @@ | ||
console.log(c.red(c.bold('Hello, World!'))) | ||
console.log(c.red(c.bold('Hello World!'))) | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
6748
29
149