template-to-string

Javascript Library to convert template into string


Keywords
template, string
License
MIT
Install
npm install template-to-string@1.0.2

Documentation

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