string-stitch
v2.0.0
Published
A clean interface for JS string interpolation
Downloads
1
Maintainers
Readme
@iwatt/string-stitch
A clean interface for JS string interpolation
Install
$ npm install @iwatt/string-stitch
Usage
Currently - stringstitch supports the ability to embed objects into template strings!
const Stitcher = require("string-stitch");
const template = "Hello ${name}";
const args = {
name: "iwatt",
}
const myStitch = new Stitcher(template, args);
console.log(myStitch.embed()); // "Hello iwatt"