byarutils
v0.1.13
Published
Simple, powerful, lightweight helpers library to assist your projects
Downloads
4
Maintainers
Readme
byarutils
Simple, powerful, lightweight helpers library to assist your projects
Install
npm install --save byarutils
Usage
import { log } from 'byarutils'
import { addToPool } from 'byarutils'
function send(to, subject, body) {
try {
// ...
log('SUCCESS', 'Mail Sender Service', 'Mail sent successfully to: ' + to)
} catch (error) {
log('ERROR', 'Mail Sender Service', 'Mail sending failed to: ' + to)
addToPool(send, [to, subject, body], 3)
}
}
License
MIT © matisbyar