1.0.2 • Published 2 years ago
stringtemp v1.0.2
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);