Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 643 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 643 Bytes

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);
})