stringtemp
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

StringTemp

Inject an array of items in to a string replacing selected values.

Install

bun add stringtemp

Setup

import StringTemp from "stringtemp";

const str = new StringTemp("{", "}");

const hello = srt.inject("Hello {name}", { name: "Kevin" });

console.log(hello);

Readme

Keywords

Package Sidebar

Install

npm i stringtemp

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

7 kB

Total Files

6

Last publish

Collaborators

  • der_googler