typographic-template

    0.1.2 • Public • Published

    typographic-template Build Status

    Replace all :keys in text with given options

    Install

    npm install --save typographic-template

    Usage

    var template = require('typographic-template');
     
    template('Hello :name!', {name: 'Ivan'}); // Hello Ivan!

    With textr

    var textr = require('textr');
    var template = require('typographic-template');
     
    var tf = textr({name: 'Ivan'})
      .use(template);
     
    tf('Hello :name!'); // Hello Ivan!

    License

    MIT

    Install

    npm i typographic-template

    DownloadsWeekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • andrepolischuk