stringtemp
v1.0.2
Published
Inject an array of items in to a string replacing selected values.
Downloads
2
Readme
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);