# beew

> The simplest way of scheduling HTTP requests

Latest version **1.1.3** (published 2022-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install beew
pnpm add beew
yarn add beew
bun add beew
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2022-12-09 |
| First published | 2022-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 45.6 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | CaioRolla |
| Maintainers | caiorolla |
| Keywords | beew, crontab, scheduler, timezone, recurring, cron |

## Links

- npm: https://www.npmjs.com/package/beew
- Repository: https://github.com/Beew-io/beew-sdk
- Homepage: https://github.com/Beew-io/beew-sdk#readme
- Issues: https://github.com/Beew-io/beew-sdk/issues
- npm.io page: https://npm.io/package/beew

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [concurrently](https://npm.io/package/concurrently.md) ^7.2.1

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2022-12-09
- 1.1.1 — 2022-06-04
- 1.1.0 — 2022-06-04
- 1.0.1 — 2022-06-04
- 1.0.0 — 2022-06-04

## README

# Welcome to beew 👋


> The simplest way of scheduling HTTP requests
> 
- Pick a common schedule or use UNIX-CRON schedule expression.
- Schedule a request for a specific date.
- Schedule your request in any timezone.
- Register logs of your requests and responses.
- Receive a email notification every time one of your requests fails

## Install

`npm install --save beew`

## Create a Beew Account

You need to have a Beew account to create schedules. Go to [app.beew.io](https://app.beew.io/) and sign up.

## Usage with Typescript

```typescript
import { Beew, ScheduleMethod, ScheduleResponseType, ScheduleType } from "beew";

/*
 * You can find your Beew secret in the Beew dashboard.
 * https://app.beew.io/en/settings/api
 */
const client = new Beew({ secret: "YOU_API_KEY_HERE" });

client.schedule.create({
  name: "test",
  cronExpression: "* * * * *",
  url: "https://beew.io/api/v1/health/ok",
  notifyOnError: false,
  headers: [],
  payload: JSON.stringify({}),
  timezone: "America/Sao_Paulo",
  method: ScheduleMethod.GET,
  responseType: ScheduleResponseType.JSON,
  type: ScheduleType.RECURRING,
});
```

Here is a list of all available methods:

| Method  | Description  |
|---|---|
| client.schedule.create(args)  | Create a new schedule  |
| client.schedule.update(args)  | Update schedule  |
| client.schedule.get('schedule_id')  | Get schedule by id  |
| client.schedule.delete('schedule_id')  | Delete schedule  |
| client.execution.get('execution_id')  | Get execution by id  |

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