re-format

1.1.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i re-format

Weekly Downloads

586

Version

1.1.6

License

ISC

Last publish

Collaborators

  • oshoghi