> ## Documentation Index
> Fetch the complete documentation index at: https://pearsdb.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Nodejs

## Instalar

Descarga el SDK de Node.js usando tu gestor de paquetes favorito.

<CodeGroup>
  ```bash npm theme={null}
  npm install resend
  ```

  ```bash yarn theme={null}
  yarn add resend
  ```

  ```bash pnpm theme={null}
  pnpm add resend
  ```
</CodeGroup>

## Inicio Rápido

La forma más fácil de enviar un correo electrónico es usando el parámetro html.

```js theme={null}
import { PearsDB } from 'pearsdb';
const pearsdb = new PearsDB('pdb_123456789');

(async function () {
  try {
    const data = await pearsdb.create({
      name: 'Bill Stern',
      company: 'Acme Corp',
      to: ['delivered@resend.dev'],
      subject: 'Hello World'
    });

    console.log(data);
  } catch (error) {
    console.error(error);
  }
})();
```

<Warning>Al usar esto no podrás utilizar reglas y condiciones.</Warning>

## Ejecutar Localmente

Ejecuta el siguiente comando en tu terminal.

```bash theme={null}
npx next dev
```
