String-interpolation🧵

@common-utilities/string-interpolation 🧰

Typed with TypeScriptarrow-up-right npm versionarrow-up-right

String Interpolation is a common function for interpolating variables in strings.

Install

yarn add @common-utilities/string-interpolation -D

Usage

stringInterpolation('This string has #{dynamicData}', [{ dynamicData: 'a knot in it' }])
// => 'This string has a knot in it'

Common Utilities 🧰

No cruft. No bloat. No dependencies.

Simple, typed, functional, documented, and tested javascript utility functions.

View other common utilitiesarrow-up-right on Github.

Last updated

Was this helpful?