workers-preview
v1.0.6
Published
Preview your workers script via an npm-script
Downloads
1,918
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"
}
}