supports-color 11.x
Use supports-color 11.0.0 to detect terminal color capability in Node.js scripts, including stdout/stderr detection and custom stream detection.
- For
supports-color@11.0.0- Verified
- 2026-09-08, 3 examples executed
- Package
@modootoday/pmcp-supports-color@11.0.0
What it covers
- Runtime and module shape
- Reading capability levels
- Custom stream detection
- Environment and command-line controls
- Browser condition
- Does not cover
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import assert from 'node:assert/strict';
import supportsColor from 'supports-color';
assert.equal(typeof supportsColor, 'object');
assert.ok('stdout' in supportsColor);
assert.ok('stderr' in supportsColor);
for (const streamSupport of [supportsColor.stdout, supportsColor.stderr]) {
if (streamSupport !== false) {
assert.ok([1, 2, 3].includes(streamSupport.level));
assert.equal(streamSupport.hasBasic, streamSupport.level >= 1);
assert.equal(streamSupport.has256, streamSupport.level >= 2);
assert.equal(streamSupport.has16m, streamSupport.level >= 3);
}
}
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. Nothing was observed. The full ledger lists every package examined, including the ones that never became a skill.
Nothing observed is not a finding of safety. It means one run, under one policy, produced nothing to report.
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-supports-color
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.