1.0.3 • Published 3 years ago
email-body-format v1.0.3
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: 'mshahzeb793@gmail.com'
}
const result = emailFormat(html, data)
Result
<p>
<b> shahzeb</b>
<p>mshahzeb793@gmail.com</p>
</p>
License
This software is free to use under the MIT license.