backend-daily
v1.1.1
Published
```js import daily from "backend-daily" ```
Downloads
10
Maintainers
Readme
Backend-daily
My daily modules in one package
import daily from "backend-daily"
Functions
daily.generateHash(data)
# returns hash using bcrypt package
daily.compareHash(data, hash)
# returns Boolean after comparing
daily.mongo(url)
# Connects to given URL using mongoose
daily.createToken(data, password)
daily.verifyToken(token, password)
# returns Promice token or error
Sending email
const transport = await daily.email(config)
# creates transporter
await transport.send(from, to, subject, text, html)
# sends email