re-format
v1.1.6
Published
A fast string formatting library
Downloads
155
Readme
re-format
A simple string formatting funciton which is focused on being fast
#Example
var format = require("re-format");
console.log(format("my favorite number is {n}", { n: 5 }));
//=> my favorite number is 5
console.log(format("my favorite number is {0}", 5));
//=> my favorite number is 5