Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@miniflare/cli-parser

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miniflare/cli-parser - npm Package Compare versions

Comparing version 2.0.0-rc.1 to 2.0.0-rc.2

8

package.json
{
"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 };
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc