yoctocolors
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,3 +5,4 @@ import tty from 'node:tty'; | ||
// TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240) | ||
const hasColors = tty.WriteStream.prototype.hasColors(); | ||
// Lots of optionals here to support Deno. | ||
const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false; | ||
@@ -8,0 +9,0 @@ const format = (open, close) => { |
{ | ||
"name": "yoctocolors", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "The smallest and fastest command-line coloring package on the internet", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -18,2 +18,4 @@ <sup>yoctocolors 🌈</sup> | ||
ESM: | ||
```sh | ||
@@ -23,2 +25,8 @@ npm install yoctocolors | ||
Or CommonJS: | ||
```sh | ||
npm install yoctocolors-cjs | ||
``` | ||
## Usage | ||
@@ -25,0 +33,0 @@ |
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
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
10210
119
139
0