New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

mnml-tpl

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mnml-tpl

Hello :username, :repository is tiny string template engine

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Minimal Templates

Build Status

Replace all :keys in string with given object.

Install

npm i -S mnml-tpl

Examples

var tpl = require('mnml-tpl');

var locals = { host: 'world', user: 'hello' };
var template = 'ssh :user@:host';
tpl(template)(locals); // ssh hello@world

License

MIT

Keywords

templates

FAQs

Package last updated on 09 Feb 2015

Related posts