https://github.com/manatarms/static-worker
A utility package for Cloudflare workers
https://github.com/manatarms/static-worker
cloudflare-worker worker
Last synced: 20 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-12T05:35:17.000Z (about 6 years ago)
- Last Synced: 2024-10-30T07:45:40.304Z (6 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 [](https://travis-ci.com/manatarms/static-worker) [](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);
})```