@miniflare/cli-parser
Advanced tools
Comparing version 2.0.0-rc.1 to 2.0.0-rc.2
{ | ||
"name": "@miniflare/cli-parser", | ||
"version": "2.0.0-rc.1", | ||
"version": "2.0.0-rc.2", | ||
"description": "CLI option parsing module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -39,8 +39,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/shared": "2.0.0-rc.1", | ||
"@miniflare/shared": "2.0.0-rc.2", | ||
"kleur": "^4.1.4" | ||
}, | ||
"devDependencies": { | ||
"@miniflare/core": "2.0.0-rc.1", | ||
"@miniflare/shared-test": "2.0.0-rc.1", | ||
"@miniflare/core": "2.0.0-rc.2", | ||
"@miniflare/shared-test": "2.0.0-rc.2", | ||
"@types/mri": "^1.1.1", | ||
@@ -47,0 +47,0 @@ "mri": "^1.1.6" |
@@ -5,2 +5,23 @@ # `@miniflare/cli-parser` | ||
[Miniflare](https://github.com/cloudflare/miniflare): a fun, full-featured, | ||
fully-local simulator for Cloudflare Workers | ||
fully-local simulator for Cloudflare Workers. See | ||
[💻 Using the CLI](https://miniflare.dev/cli.html) for more details. | ||
## Example | ||
```js | ||
import { buildHelp, parseArgv } from "@miniflare/cli-parser"; | ||
import { BuildPlugin } from "@miniflare/core"; | ||
import { KVPlugin } from "@miniflare/kv"; | ||
const plugins = { BuildPlugin, KVPlugin }; | ||
const help = buildHelp(plugins, "exec"); | ||
console.log(help); // Usage: exec ... | ||
const options = parseArgv(plugins, [ | ||
"--build-command", | ||
"npm run build", | ||
"--kv-persist", | ||
]); | ||
console.log(options); // { buildCommand: "npm run build", kvPersist: true }; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20436
27
+ Added@miniflare/shared@2.0.0-rc.2(transitive)
- Removed@miniflare/shared@2.0.0-rc.1(transitive)
Updated@miniflare/shared@2.0.0-rc.2