# lizard-cloud-functions

> Lizard Global Backend Functions

Latest version **1.0.1** (published 2019-10-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install lizard-cloud-functions
pnpm add lizard-cloud-functions
yarn add lizard-cloud-functions
bun add lizard-cloud-functions
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-14 |
| First published | 2019-10-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 (+13 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lizard Global |
| Maintainers | hafiz_lizard_global |

## Links

- npm: https://www.npmjs.com/package/lizard-cloud-functions
- Repository: https://github.com/hafizmowais/Lizard-Cloud-Functions
- Homepage: https://github.com/hafizmowais/Lizard-Cloud-Functions#readme
- Issues: https://github.com/hafizmowais/Lizard-Cloud-Functions/issues
- npm.io page: https://npm.io/package/lizard-cloud-functions

## Dependencies (5)

- [react](https://npm.io/package/react.md) ^16.0.0
- [nodemailer](https://npm.io/package/nodemailer.md) ^6.3.1
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.1
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.24.1

## Recent versions

- 1.0.1 (latest) — 2019-10-14
- 1.0.0 — 2019-10-14

## README

# Lizard Cloud Functions
[![Lizard Global](https://drive.google.com/uc?id=1VBhQROdv6FdNQvAdUh41p4aHtl4ih7U8)](https://lizard.global/about-us)

Server side helper functions

## Example?

### Send email using sendgrid

```
import {sendEmail} from 'lizard-cloud-functions'  //import sendEmail function

---
**NOTE**

Please define smtp config in one file and use it as import. So for any reason if needed to be changed then it has to be changed at one place and good to go
---

const data = {
  smtpConfig: {
    host: 'smtp.sendgrid.net',
    port: 587,
    secure: false, // true for 465, false for other ports
    auth: {
      user: 'apikey',
      pass: //your sendgrid API key
    }
  },
  subject: 'Test email',
  html: '<h1>HTML for Text email</h1>',
  to: //email address whom you want to send email
  from: //from which email address you want to send email
}
sendEmail(data)
.then((data) => {
  res.status(200).send(data);
})
.catch( (err) =>{
  res.status(400).send(err);
})

```

---
_Source: https://npm.io/package/lizard-cloud-functions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
