manatarms / static-worker

A utility package for Cloudflare workers

Home Page:https://github.com/manatarms/static-worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A utility package for Cloudflare workers

https://github.com/manatarms/static-worker

License:MIT License


Languages

Language:JavaScript 100.0%