Comments (2)
Are you setting that variable prior to including any modules that use supports-color
? Or after?
There's always just calling supportsColor.supportsColor(process.stdout)
again. That doesn't cache.
EDIT: Oh I see, we do cache that one. Agreed, we shouldn't be doing that.
from supports-color.
PR welcome to fix this.
from supports-color.
Related Issues (20)
- Implementing the NO_COLOR environment variable standard HOT 1
- support for NO_COLOR env var HOT 5
- False-negative on GitHub Actions HOT 22
- What is wrong with the native `writeStream.getColorDepth`? HOT 3
- How to force using colors from browser? HOT 1
- Broken build with rollup for node due to global "navigator" HOT 6
- Change to ESM causes backwards compatibility issues HOT 3
- Implement `NO_COLOR` informal specification HOT 1
- "Can't resolve node:tty" when using nextjs and yarn 3 HOT 1
- No way to force color in browser HOT 9
- `navigator.userAgentData` HOT 1
- Support importing via deno HOT 3
- GitHub Action support truecolor HOT 1
- SyntaxError in index.js HOT 2
- My terminal emulator (mobaxterm) supports truecolor, but supports-color doesn't detect it HOT 4
- Package published without README HOT 1
- Claimed support for Node.js v12 missing HOT 10
- process is not defined in supports-colors.js HOT 1
- `FORCE_COLOR` testcases failing (fixed 2) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supports-color.