tmpl
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/tmpl package

1.0.5 • Public • Published

tmpl Build Status

Simple string formatting using {}.

assert.equal(
  tmpl('the answer is {answer}', { answer: 42 }),
  'the answer is 42')

Readme

Keywords

none

Package Sidebar

Install

npm i tmpl

Weekly Downloads

17,902,668

Version

1.0.5

License

BSD-3-Clause

Unpacked Size

2.77 kB

Total Files

4

Last publish

Collaborators

  • daaku