template-to-string

1.0.5 • Public • Published

template-to-string

Javascript library to convert templates into string.

Installation

npm i template-to-string

Usage

const templateToString = require('template-to-string');

let myString = templateToString({
    template:"Hi {name}, Welcome to {country}",
    data:{
        name:"Goutham",
        country:"India"
    }
})

console.log(myString); // Hi Goutham, Welcome to India

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i template-to-string

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

3.04 kB

Total Files

4

Last publish

Collaborators

  • itsgouthamraj