workers-preview

Preview your workers script via an npm-script

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
workers-preview
921.0.64 years ago4 years agoMinified + gzip package size for workers-preview in KB

Readme

Cloudflare Service Workers Previewer
Easily preview your workers script projects from npm scripts or the command line.

Install
npm install workers-preview

Usage
# Open the script previewer
npm run preview

package.json
Edit your package.json to include the preview script. Pipe the file you want to preview into the workers-preview cli.
{
  "scripts": {
    "preview": "workers-preview < my-script.js"
  },
  "dependencies": {
    "workers-preview": "^1.0.0"
  }
}