A lightweight string formatting utility for JavaScript, inspired by C#/.NET style placeholders. Version 0.0.5, last updated in 2018, with no active development. Provides two functions: format() for positional placeholders (supports array or multiple arguments) and formatReplace() for named placeholders. Minimal dependency, simple API, but lacks TypeScript support and modern ESM exports. Best suited for simple string interpolation in legacy Node.js projects.
npm install rfs-string-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates both format() and formatReplace() with positional (arguments/array) and named placeholders.
Manually replace '\\{' with '{' after formatting, or use a different library that supports escaping.Ensure all array elements are defined, or filter out undefined values before passing to format.
Consider migrating to a maintained alternative like 'string-format' or 'template-format'.
Run 'npm install rfs-string-formatter' and ensure node_modules contains the package.
Use 'const formatter = require("rfs-string-formatter");' then call formatter.format(...)Ensure the first argument to format/formatReplace is a non-empty string.
No dependency data recorded yet.