Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manatarms/static-worker
A utility package for Cloudflare workers
https://github.com/manatarms/static-worker
cloudflare-worker worker
Last synced: 17 days ago
JSON representation
A utility package for Cloudflare workers
- Host: GitHub
- URL: https://github.com/manatarms/static-worker
- Owner: manatarms
- License: mit
- Created: 2019-01-14T12:19:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-12T05:35:17.000Z (almost 6 years ago)
- Last Synced: 2024-08-09T10:02:19.671Z (3 months ago)
- Topics: cloudflare-worker, worker
- Language: JavaScript
- Homepage: https://github.com/manatarms/static-worker
- Size: 291 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cloudflare - Static Worker - Provides functions that make it easy to host a static website. (Workers / Recipes)
- awesome-cloudflare - Static Worker - Provides functions that make it easy to host a static website. (Workers / Recipes)
README
# Static Worker [![Build Status](https://travis-ci.com/manatarms/static-worker.svg?branch=master)](https://travis-ci.com/manatarms/static-worker) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/manatarms/static-worker/blob/master/LICENSE)
## A utility package for Cloudflare workersThis package provides functions that make it easy to host a static website using CLoudflare workers.
Here's a simple example
```javascript
import StaticWorker from "static-worker";const worker = new StaticWorker(request);
// Images route
worker.route(/images/,(request)=>{
return console.log(request);
})```