cloudflare-wrangler-dev
v1.0.3
Published
Cloudflare Wranger Dev is a lightweight Javascript/Typescript API for Cloudflare's `wrangler` CLI tool, specifically scoped to the wrangler dev sub-command
Downloads
12
Maintainers
Readme
Cloudflare Wrangler Dev
Cloudflare Wranger Dev is a lightweight Javascript/Typescript API for Cloudflare's wrangler
CLI tool, specifically scoped to the wrangler dev
sub-command.
Install
npm install cloudflare-wrangler-dev
Usage
import { WranglerDev } from 'cloudflare-wrangler-dev'
async function runTests() {
const wrangler = new WranglerDev()
await wrangler.start()
// do stuff...
await wrangler.stop()
}
runTests()
Options
See: WranglerDevOptions
type; values correspond wiht wrangler dev
optiions and a spawn
property which get passed to Node.js's child_process.spown
.