A string manipulation toolbox for Node.js (v0.19.3, beta status, MIT license). Provides a sprintf-inspired string formatter with style markup (^caret), a variable inspector with ANSI colors and HTML output, and various escape functions (shell arguments, regex, HTML, control characters). Unlike sprintf libraries, it includes a full inspect utility for debugging objects with color, and supports metrics, scientific notation, time duration, and base64 conversions. Intended for Node.js; browser support is planned but not yet available. Release cadence is irregular; last release was in 2025.
npm install string-kitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates format() with specifiers and markup, inspect(), and escape methods (shellArg, html).
Use import { format, inspect, escape } from 'string-kit' instead of import stringKit from 'string-kit'.Use '^^' to output a single caret character in format strings.
Manually construct the regex: new RegExp(escape.regExp(input)).
Update imports from 'const sk = require("string-kit")' to 'const { format, inspect, escape } = require("string-kit")'.Pass options to disable colors, e.g., inspect(obj, { color: false }).Use import { format } from 'string-kit' instead of import stringKit from 'string-kit'.Upgrade Node.js to version 14.15.0 or higher.
Run 'npm install string-kit' in your project directory.
Use escape.shellArg() after importing { escape } from 'string-kit'.No dependency data recorded yet.