@visulima/is-ansi-color-supported
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -0,1 +1,26 @@ | ||
## @visulima/is-ansi-color-supported [2.2.1](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.0...@visulima/is-ansi-color-supported@2.2.1) (2024-06-06) | ||
### Bug Fixes | ||
* allow node v22 ([890d457](https://github.com/visulima/visulima/commit/890d4570f18428e2463944813c0c638b3f142803)) | ||
### Styles | ||
* cs fixes ([7bf5b91](https://github.com/visulima/visulima/commit/7bf5b91383b612598d955fe23505c94f22a8d277)) | ||
### Miscellaneous Chores | ||
* changed semantic-release-npm to pnpm ([b6d100a](https://github.com/visulima/visulima/commit/b6d100a2bf3fd026577be48726a37754947f0973)) | ||
* **deps:** updated dev deps ([d91ac38](https://github.com/visulima/visulima/commit/d91ac389cea85a6c6bdc8de97905252a6c467abc)) | ||
* update dev dependencies ([068bdbf](https://github.com/visulima/visulima/commit/068bdbfe0b371b5cc7e5ac071dc3310a3b8cea98)) | ||
* update dev dependencies ([09c4854](https://github.com/visulima/visulima/commit/09c4854e221fa8b808dfe66d7196d8db2a39b366)) | ||
* updated dev dependencies ([a2e0504](https://github.com/visulima/visulima/commit/a2e0504dc239049434c2482756ff15bdbaac9b54)) | ||
* updated dev dependencies ([abd319c](https://github.com/visulima/visulima/commit/abd319c23576aa1dc751ac874e806bddbc977d51)) | ||
* updated dev dependencies ([0767afe](https://github.com/visulima/visulima/commit/0767afe9be83da6698c1343724400171f952599e)) | ||
* updated dev dependencies ([d7791e3](https://github.com/visulima/visulima/commit/d7791e327917e438757636573b1e5549a97bba7b)) | ||
* updated dev dependencies ([6005345](https://github.com/visulima/visulima/commit/60053456717a3889fc77b4fb5b05d50a662475b2)) | ||
## @visulima/is-ansi-color-supported [2.2.0](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.1.0...@visulima/is-ansi-color-supported@2.2.0) (2024-04-09) | ||
@@ -2,0 +27,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { C as ColorSupportLevel } from './color-spaces-LVm3eRLc.js'; | ||
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './color-spaces-LVm3eRLc.js'; | ||
import { C as ColorSupportLevel } from './color-spaces-DeN59JDX.js'; | ||
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './color-spaces-DeN59JDX.js'; | ||
@@ -4,0 +4,0 @@ declare const isStdoutColorSupported: () => ColorSupportLevel; |
@@ -1,3 +0,3 @@ | ||
import { C as ColorSupportLevel } from './color-spaces-LVm3eRLc.js'; | ||
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './color-spaces-LVm3eRLc.js'; | ||
import { C as ColorSupportLevel } from './color-spaces-DeN59JDX.js'; | ||
export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './color-spaces-DeN59JDX.js'; | ||
@@ -4,0 +4,0 @@ declare const isStdoutColorSupported: () => ColorSupportLevel; |
302
package.json
{ | ||
"name": "@visulima/is-ansi-color-supported", | ||
"version": "2.2.0", | ||
"description": "Detect whether a terminal or browser supports ansi colors.", | ||
"keywords": [ | ||
"anolilab", | ||
"visulima", | ||
"colorize", | ||
"ansi", | ||
"colour", | ||
"color", | ||
"colors", | ||
"styles", | ||
"terminal", | ||
"xterm", | ||
"console", | ||
"cli", | ||
"truecolor", | ||
"FORCE_COLOR", | ||
"NO_COLOR", | ||
"ansi-colors", | ||
"style", | ||
"tty", | ||
"256", | ||
"detect", | ||
"edge", | ||
"next.js", | ||
"nextjs", | ||
"support", | ||
"supports", | ||
"capability", | ||
"shell", | ||
"command-line" | ||
], | ||
"homepage": "https://www.visulima.com/docs/package/is-ansi-color-supported", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/visulima/visulima.git", | ||
"directory": "packages/is-ansi-color-supported" | ||
"name": "@visulima/is-ansi-color-supported", | ||
"version": "2.2.1", | ||
"description": "Detect whether a terminal or browser supports ansi colors.", | ||
"keywords": [ | ||
"anolilab", | ||
"visulima", | ||
"colorize", | ||
"ansi", | ||
"colour", | ||
"color", | ||
"colors", | ||
"styles", | ||
"terminal", | ||
"xterm", | ||
"console", | ||
"cli", | ||
"truecolor", | ||
"FORCE_COLOR", | ||
"NO_COLOR", | ||
"ansi-colors", | ||
"style", | ||
"tty", | ||
"256", | ||
"detect", | ||
"edge", | ||
"next.js", | ||
"nextjs", | ||
"support", | ||
"supports", | ||
"capability", | ||
"shell", | ||
"command-line" | ||
], | ||
"homepage": "https://www.visulima.com/docs/package/is-ansi-color-supported", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/visulima/visulima.git", | ||
"directory": "packages/is-ansi-color-supported" | ||
}, | ||
"funding": [ | ||
{ | ||
"type": "github", | ||
"url": "https://github.com/sponsors/prisis" | ||
}, | ||
"funding": [ | ||
{ | ||
"type": "github", | ||
"url": "https://github.com/sponsors/prisis" | ||
}, | ||
{ | ||
"type": "consulting", | ||
"url": "https://anolilab.com/support" | ||
} | ||
], | ||
"license": "MIT", | ||
"author": { | ||
"name": "Daniel Bannert", | ||
"email": "d.bannert@anolilab.de" | ||
{ | ||
"type": "consulting", | ||
"url": "https://anolilab.com/support" | ||
} | ||
], | ||
"license": "MIT", | ||
"author": { | ||
"name": "Daniel Bannert", | ||
"email": "d.bannert@anolilab.de" | ||
}, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"browser": "./dist/is-color-supported.browser.js", | ||
"require": { | ||
"types": "./dist/is-color-supported.server.d.cts", | ||
"default": "./dist/is-color-supported.server.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/is-color-supported.server.d.ts", | ||
"default": "./dist/is-color-supported.server.js" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"browser": "./dist/is-color-supported.browser.js", | ||
"require": { | ||
"types": "./dist/is-color-supported.server.d.cts", | ||
"default": "./dist/is-color-supported.server.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/is-color-supported.server.d.ts", | ||
"default": "./dist/is-color-supported.server.js" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "dist/is-color-supported.server.cjs", | ||
"module": "dist/is-color-supported.server.js", | ||
"browser": "./dist/is-color-supported.browser.js", | ||
"types": "dist/is-color-supported.server.d.ts", | ||
"files": [ | ||
"dist/**", | ||
"README.md", | ||
"CHANGELOG.md", | ||
"LICENSE.md" | ||
], | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=development tsup", | ||
"build:prod": "cross-env NODE_ENV=production tsup", | ||
"clean": "rimraf node_modules dist .eslintcache", | ||
"dev": "pnpm run build --watch", | ||
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs", | ||
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix", | ||
"lint:packagejson": "publint --strict", | ||
"lint:prettier": "prettier --config=.prettierrc.cjs --check .", | ||
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .", | ||
"lint:types": "tsc --noEmit", | ||
"test": "vitest run", | ||
"test:coverage": "vitest run --coverage", | ||
"test:ui": "vitest --ui --coverage.enabled=true", | ||
"test:watch": "vitest" | ||
}, | ||
"devDependencies": { | ||
"@anolilab/eslint-config": "^15.0.3", | ||
"@anolilab/prettier-config": "^5.0.14", | ||
"@anolilab/semantic-release-preset": "^8.0.3", | ||
"@babel/core": "^7.24.4", | ||
"@rushstack/eslint-plugin-security": "^0.8.1", | ||
"@secretlint/secretlint-rule-preset-recommend": "^8.2.3", | ||
"@types/micromatch": "^4.0.6", | ||
"@types/node": "18.18.14", | ||
"@vitest/coverage-v8": "^1.4.0", | ||
"@vitest/ui": "^1.4.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-deprecation": "^2.0.0", | ||
"eslint-plugin-etc": "^2.0.3", | ||
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1", | ||
"eslint-plugin-mdx": "^3.1.5", | ||
"eslint-plugin-vitest": "^0.4.1", | ||
"eslint-plugin-vitest-globals": "^1.5.0", | ||
"prettier": "^3.2.5", | ||
"rimraf": "^5.0.5", | ||
"secretlint": "8.2.3", | ||
"semantic-release": "^23.0.7", | ||
"sort-package-json": "^2.10.0", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.4.4", | ||
"vitest": "^1.4.0" | ||
}, | ||
"engines": { | ||
"node": ">=18.* <=21.*" | ||
}, | ||
"os": [ | ||
"darwin", | ||
"linux", | ||
"win32" | ||
], | ||
"publishConfig": { | ||
"access": "public", | ||
"provenance": true | ||
}, | ||
"anolilab": { | ||
"eslint-config": { | ||
"plugin": { | ||
"tsdoc": false | ||
}, | ||
"warn_on_unsupported_typescript_version": false, | ||
"info_on_disabling_jsx_react_rule": false, | ||
"info_on_disabling_prettier_conflict_rule": false, | ||
"info_on_disabling_jsonc_sort_keys_rule": false, | ||
"info_on_disabling_etc_no_deprecated": false | ||
} | ||
}, | ||
"sources": [ | ||
"src/is-color-supported.browser.ts", | ||
"src/is-color-supported.server.ts" | ||
] | ||
} | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "dist/is-color-supported.server.cjs", | ||
"module": "dist/is-color-supported.server.js", | ||
"browser": "./dist/is-color-supported.browser.js", | ||
"types": "dist/is-color-supported.server.d.ts", | ||
"files": [ | ||
"dist/**", | ||
"README.md", | ||
"CHANGELOG.md", | ||
"LICENSE.md" | ||
], | ||
"devDependencies": { | ||
"@anolilab/eslint-config": "^15.0.3", | ||
"@anolilab/prettier-config": "^5.0.14", | ||
"@anolilab/semantic-release-pnpm": "^1.1.0", | ||
"@anolilab/semantic-release-preset": "^8.1.0", | ||
"@babel/core": "^7.24.6", | ||
"@rushstack/eslint-plugin-security": "^0.8.1", | ||
"@secretlint/secretlint-rule-preset-recommend": "^8.2.4", | ||
"@types/micromatch": "^4.0.7", | ||
"@types/node": "18.18.14", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"@vitest/ui": "^1.6.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-deprecation": "^3.0.0", | ||
"eslint-plugin-etc": "^2.0.3", | ||
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1", | ||
"eslint-plugin-mdx": "^3.1.5", | ||
"eslint-plugin-vitest": "^0.4.1", | ||
"eslint-plugin-vitest-globals": "^1.5.0", | ||
"prettier": "^3.3.0", | ||
"rimraf": "^5.0.7", | ||
"secretlint": "8.2.3", | ||
"semantic-release": "23.1.1", | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.6.0" | ||
}, | ||
"engines": { | ||
"node": ">=18.* <=22.*" | ||
}, | ||
"os": [ | ||
"darwin", | ||
"linux", | ||
"win32" | ||
], | ||
"publishConfig": { | ||
"access": "public", | ||
"provenance": true | ||
}, | ||
"anolilab": { | ||
"eslint-config": { | ||
"plugin": { | ||
"tsdoc": false | ||
}, | ||
"warn_on_unsupported_typescript_version": false, | ||
"info_on_disabling_jsx_react_rule": false, | ||
"info_on_disabling_prettier_conflict_rule": false, | ||
"info_on_disabling_jsonc_sort_keys_rule": false, | ||
"info_on_disabling_etc_no_deprecated": false | ||
} | ||
}, | ||
"sources": [ | ||
"src/is-color-supported.browser.ts", | ||
"src/is-color-supported.server.ts" | ||
], | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=development tsup", | ||
"build:prod": "cross-env NODE_ENV=production tsup", | ||
"clean": "rimraf node_modules dist .eslintcache", | ||
"dev": "pnpm run build --watch", | ||
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs", | ||
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix", | ||
"lint:package-json": "publint --strict", | ||
"lint:prettier": "prettier --config=.prettierrc.cjs --check .", | ||
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .", | ||
"lint:types": "tsc --noEmit", | ||
"test": "vitest run", | ||
"test:coverage": "vitest run --coverage", | ||
"test:ui": "vitest --ui --coverage.enabled=true", | ||
"test:watch": "vitest" | ||
} | ||
} |
@@ -63,6 +63,6 @@ <div align="center"> | ||
- TrueColor | ||
- ANSI 256 colors | ||
- ANSI 16 colors | ||
- black & white (no color) | ||
- TrueColor | ||
- ANSI 256 colors | ||
- ANSI 16 colors | ||
- black & white (no color) | ||
@@ -75,17 +75,17 @@ There is no standard way to detect which color space is supported. | ||
| Terminal | ANSI 16<br>colors | ANSI 256<br>colors | True<br>Color | env.<br>TERM | env.<br>COLORTERM | Specifically ENV variables | | ||
|:---------------------------------|-------------------|:-------------------|:--------------|:--------------:|:-----------------:|:---------------------------------------| | ||
| Azure CI | ✅ | ❌ | ❌ | dumb | | TF_BUILD<br>AGENT_NAME | | ||
| GitHub CI | ✅ | ✅ | ✅ | dumb | | CI<br>GITHUB_ACTIONS | | ||
| GitTea CI | ✅ | ✅ | ✅ | dumb | | CI<br>GITEA_ACTIONS | | ||
| GitLab CI | ✅ | ❌ | ❌ | dumb | | CI<br>GITLAB_CI | | ||
| Travis CI | ✅ | ❌ | ❌ | dumb | | TRAVIS | | ||
| PM2<br>not isTTY | ✅[^1] | ✅[^1] | ✅[^1] | dumb | | PM2_HOME<br>pm_id | | ||
| JetBrains TeamCity<br>>=2020.1.1 | ✅ | ✅ | ❌ | | | TEAMCITY_VERSION | | ||
| JetBrains IDEA | ✅ | ✅ | ✅ | xterm-256color | | TERMINAL_EMULATOR='JetBrains-JediTerm' | | ||
| VS Code | ✅ | ✅ | ✅ | xterm-256color | truecolor | | | ||
| Windows<br>Terminal | ✅ | ✅ | ✅[^2] | | | | | ||
| Windows<br>PowerShell | ✅ | ✅ | ✅[^2] | | | | | ||
| macOS Terminal | ✅ | ✅ | ❌ | xterm-256color | | | | ||
| iTerm | ✅ | ✅ | ✅ | xterm-256color | truecolor | | | ||
| Terminal emulator Kitty | ✅ | ✅ | ✅ | xterm-kitty | | | | ||
| :------------------------------- | ----------------- | :----------------- | :------------ | :------------: | :---------------: | :------------------------------------- | | ||
| Azure CI | ✅ | ❌ | ❌ | dumb | | TF_BUILD<br>AGENT_NAME | | ||
| GitHub CI | ✅ | ✅ | ✅ | dumb | | CI<br>GITHUB_ACTIONS | | ||
| GitTea CI | ✅ | ✅ | ✅ | dumb | | CI<br>GITEA_ACTIONS | | ||
| GitLab CI | ✅ | ❌ | ❌ | dumb | | CI<br>GITLAB_CI | | ||
| Travis CI | ✅ | ❌ | ❌ | dumb | | TRAVIS | | ||
| PM2<br>not isTTY | ✅[^1] | ✅[^1] | ✅[^1] | dumb | | PM2_HOME<br>pm_id | | ||
| JetBrains TeamCity<br>>=2020.1.1 | ✅ | ✅ | ❌ | | | TEAMCITY_VERSION | | ||
| JetBrains IDEA | ✅ | ✅ | ✅ | xterm-256color | | TERMINAL_EMULATOR='JetBrains-JediTerm' | | ||
| VS Code | ✅ | ✅ | ✅ | xterm-256color | truecolor | | | ||
| Windows<br>Terminal | ✅ | ✅ | ✅[^2] | | | | | ||
| Windows<br>PowerShell | ✅ | ✅ | ✅[^2] | | | | | ||
| macOS Terminal | ✅ | ✅ | ❌ | xterm-256color | | | | ||
| iTerm | ✅ | ✅ | ✅ | xterm-256color | truecolor | | | ||
| Terminal emulator Kitty | ✅ | ✅ | ✅ | xterm-kitty | | | | ||
@@ -97,4 +97,4 @@ [^1]: Colors supported depends on actual terminal. | ||
- [Truecolor Support in Output Devices](https://github.com/termstandard/colors#truecolor-support-in-output-devices). | ||
- [So you want to render colors in your terminal](https://marvinh.dev/blog/terminal-colors/). | ||
- [Truecolor Support in Output Devices](https://github.com/termstandard/colors#truecolor-support-in-output-devices). | ||
- [So you want to render colors in your terminal](https://marvinh.dev/blog/terminal-colors/). | ||
@@ -101,0 +101,0 @@ ## Environment variables |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
59081