@outbook/format-string
v1.0.3
Published
Format string function, with array or named placeholders
Readme
format-string
Import and use it:
import { formatString } from '@outbook/format-string';
formatString(
"Hello [0], you have {count} new messages from {sender}",
["Alice"],
{ count: 5, sender: "Bob" }
);
// "Hello Alice, you have 5 new messages from Bob"
