# @ericxstone/cloudworker

> node.js runner for Cloudflare Workers

Latest version **1.0.0** (published 2021-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ericxstone/cloudworker
pnpm add @ericxstone/cloudworker
yarn add @ericxstone/cloudworker
bun add @ericxstone/cloudworker
```

Provides the command `cloudworker`.

## 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.0.0 |
| Published | 2021-08-30 |
| First published | 2021-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 258.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | ericxstone |
| Keywords | cloudflare, service worker, workers, worker, cloudflare worker, cloudworker |

## Links

- npm: https://www.npmjs.com/package/@ericxstone/cloudworker
- Repository: https://github.com/ericxstone/cloudworker
- Homepage: https://github.com/ericxstone/cloudworker#readme
- Issues: https://github.com/ericxstone/cloudworker/issues
- npm.io page: https://npm.io/package/@ericxstone/cloudworker

## Dependencies (10)

- [atob](https://npm.io/package/atob.md) ^2.1.2
- [btoa](https://npm.io/package/btoa.md) ^1.2.1
- [moment](https://npm.io/package/moment.md) ^2.24.0
- [commander](https://npm.io/package/commander.md) ^2.20.0
- [lru-cache](https://npm.io/package/lru-cache.md) ^5.1.1
- [arraybuffer-equal](https://npm.io/package/arraybuffer-equal.md) ^1.0.4
- [node-webcrypto-ossl](https://npm.io/package/node-webcrypto-ossl.md) ^1.0.48
- [http-cache-semantics](https://npm.io/package/http-cache-semantics.md) ^4.0.3
- [web-streams-polyfill](https://npm.io/package/web-streams-polyfill.md) ^2.0.3
- [@dollarshaveclub/node-fetch](https://npm.io/package/@dollarshaveclub/node-fetch.md) ^3.2.0

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-08-30
- 0.1.2 — 2021-08-30

## README

# @ericxstone/cloudworker

This package is a fork from [cloudworker](https://github.com/dollarshaveclub/cloudworker) created by Dollar Shave Club. I have further added the feature to support scheduled event from cloudflare worker.

NPM: https://www.npmjs.com/package/@ericxstone/cloudworker

## Installing

Install via NPM:
```sh
npm install -g @ericxstone/cloudworker
```
## Package Usage

```
const Cloudworker = require('@ericxstone/cloudworker')

const simpleScript = `addEventListener('scheduled', event => {
  event.waitUntil(() => {});
})`

const cw = new Cloudworker(simpleScript)
cw.triggerCronJob.then((res) => {
  console.log("Schedule is triggered")
})
```

For other features and description, please refer to the [original repository](https://github.com/dollarshaveclub/cloudworker).

## License
MIT

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