re-format

A fast string formatting library

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
re-format
1.1.65 years ago6 years agoMinified + gzip package size for re-format in KB

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