email-body-format
v1.0.3
Published
This package replace variables from html body string into their provided values
Downloads
10
Readme
email-body-format
Quick Start
npm i email-body-format adds the library to node_modules. You can
then use it as follows:
const emailFormat = require('email-body-format')
Overview
This is a great email format for user-visible HTML strings and very easy to use simple pass html body with {varibaleName} and data object with varibaleName as key and their value
Examples
const emailFormat = require('email-body-format')
const html = `<p>
<b> {name}</b>
<p>{email}</p>
</p>`
const data = {
name: 'shahzeb',
email: '[email protected]'
}
const result = emailFormat(html, data)Result
<p>
<b> shahzeb</b>
<p>[email protected]</p>
</p>
License
This software is free to use under the MIT license.
