string-templater

1.0.0 • Public • Published

string-templater

Basic string templater

Usage

 
    var templater = require('string-templater');
 
    templater('I like {food}', {food: 'Bacon'});
    // I like Bacon
 
    templater('First do {0} then {1}', ['things', 'stuff']);
    // First do things then stuff
 

Package Sidebar

Install

npm i string-templater

Weekly Downloads

101

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mauricebutler