Home

Awesome

Static Worker Build Status GitHub license

A utility package for Cloudflare workers

This package provides functions that make it easy to host a static website using CLoudflare workers.

Here's a simple example

import StaticWorker from "static-worker";

const worker = new StaticWorker(request);

// Images route
worker.route(/images/,(request)=>{
  return console.log(request);
})