ansi-styles 7.x
Use ansi-styles v7.0.0 to generate ANSI escape sequences, inspect style groups, convert RGB/hex colors, and work with underline colors. Requires Node.js 22 or newer and ESM imports.
- For
ansi-styles@7.0.0- Verified
- 2026-09-08, 5 examples executed
- Package
@modootoday/pmcp-ansi-styles@7.0.0
What it covers
- Import shape
- Styles and groups
- ANSI color conversions
- Underline styles and underline colors
- The `codes` map
- Common v6-to-v7 mistakes
- Not covered
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 styles, {
modifierNames,
foregroundColorNames,
backgroundColorNames,
underlineColorNames,
colorNames,
} from 'ansi-styles';
assert.ok(modifierNames.includes('bold'));
assert.ok(foregroundColorNames.includes('green'));
assert.ok(backgroundColorNames.includes('bgGreen'));
assert.ok(underlineColorNames.includes('underlineRed'));
assert.ok(colorNames.includes('green'));
assert.ok(colorNames.includes('bgGreen'));
assert.ok(!colorNames.includes('underlineRed'));
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-ansi-styles
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.