← Home

printable-characters

A little helper for handling strings containing zero width control characters, ANSI styling, whitespaces, newlines, 💩, etc.

1
Versions
Unlicense
License
No
Install Scripts
Missing
Provenance

Supply chain provenance

Status for the latest visible version.

No SLSA provenance npm registry signatures gitHead linked

Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.

Maintainers

xpl

Keywords

string widthstring lengthreal string widthreal string lengthoptical string widthprinted widthunicodecodepointscode pointsstrlenzero widthzero width symbolszero width charactersvisible charactersvisible symbolsvisibleinvisibleinvisible symbolsinvisible charactersprintableprintable lengthprintable symbolsprintable charactersnon-printable charactersnonprintable characterscharacterssymbolsstring lengthreal string lengthstring trimmingtrimmingescapesescape codescodesansi escapestokenizingansiwhitespaces

Accepted risks

Findings the reviewer chose to accept rather than block on.

SourceRuleReasonAccepted byWhen
semgrep semgrep:dynamic-require AI (semgrep): Dynamic require in test.js uses an env var set explicitly in package.json test scripts to point to the package's own build output. This is a stable, benign test harness pattern for this package. ai

Versions (showing 1 of 1)

Version Deps Published
1.0.42 0 / 8

v1.0.42

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.