ipol8

1.0.2 • Public • Published

To interpolate your variables into one string, just add the $ marks to the original string and pass each value as a parameter:

var i = require('ipol8');
var name = 'Porta8080';
var output = i('Hello, $ and welcome to $!',name,'Ipol8');

You can pass any number of parameters.

Alternatively, you can pass the values as an array to programatically make interpolations.

i('Hello, $ $',['John','Doe']);

Package Sidebar

Install

npm i ipol8

Weekly Downloads

3

Version

1.0.2

License

ISC

Last publish

Collaborators

  • porta8080