nanocolors
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -67,3 +67,3 @@ let nope = s => s | ||
export { | ||
module.exports = { | ||
isColorSupported, | ||
@@ -70,0 +70,0 @@ reset, |
@@ -57,3 +57,3 @@ type Color = (text: string | number) => string | ||
*/ | ||
export function createColors(enabled: boolean | undefined): Colors | ||
export function createColors(enabled?: boolean): Colors | ||
@@ -60,0 +60,0 @@ // Modifiers |
@@ -1,2 +0,2 @@ | ||
import tty from 'tty' | ||
let tty = require('tty') | ||
@@ -146,3 +146,3 @@ let isDisabled = 'NO_COLOR' in process.env | ||
export { | ||
module.exports = { | ||
isColorSupported, | ||
@@ -149,0 +149,0 @@ reset, |
{ | ||
"name": "nanocolors", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A tiny and fast Node.js library for formatting terminal text with ANSI colors", | ||
@@ -23,20 +23,4 @@ "keywords": [ | ||
"browser": { | ||
"./index.js": "./index.browser.js", | ||
"./index.cjs": "./index.browser.cjs" | ||
}, | ||
"type": "module", | ||
"main": "index.cjs", | ||
"module": "index.js", | ||
"react-native": "index.js", | ||
"exports": { | ||
".": { | ||
"browser": "./index.browser.js", | ||
"require": "./index.cjs", | ||
"import": "./index.js", | ||
"default": "./index.js", | ||
"types": "./index.d.ts" | ||
}, | ||
"./package.json": "./package.json", | ||
"./index.d.ts": "./index.d.ts" | ||
"./index.js": "./index.browser.js" | ||
} | ||
} | ||
} |
@@ -121,1 +121,8 @@ # Nano Colors | ||
from color support auto-detection. | ||
## Thanks | ||
API design was inspired | ||
by [`colorette`](https://github.com/jorgebucaran/colorette) | ||
and [`kleur`](https://github.com/lukeed/kleur). |
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
128
9
10968
6
330
No