@quenk/polate
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Polate

"Small function for interpolating variables into javascript strings.",

Installation

npm install --save polate

Usage

var polate = require('polate');

var result = polate('My name is {{name}}', {name:'My Name'}, {start:'{{', end:'}}'}); 

The third argument is an optional options object, if omitted, the start and end markers default to { and } respectively.

Package Sidebar

Install

npm i @quenk/polate

Weekly Downloads

9

Version

1.3.0

License

Apache-2.0

Last publish

Collaborators

  • metasansana