Socket
Socket
Sign inDemoInstall

@funish/argv

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @funish/argv

Programmatically parse command line parameters, powered by Funish.


Version published
Weekly downloads
52
decreased by-3.7%
Maintainers
1
Install size
5.30 kB
Created
Weekly downloads
 

Readme

Source

@funish/argv

npm version npm downloads npm license Contributor Covenant

Programmatically parse command line parameters, powered by Funish.

Getting started

# npm
$ npm install @funish/argv

# yarn
$ yarn add @funish/argv

# pnpm
$ pnpm add @funish/argv

Usage

import { parseArgv } from "@funish/argv";

const argv = parseArgv([
  "-b",
  "--bool",
  "--no-meep",
  "--multi=baz",
  "--foo",
  "bar",
]);
// => { _: [], b: true, bool: true, meep: false, multi: "baz", foo: "bar" }

Interfaces

See it on JSDoc.

License

  • MIT © Funish

Keywords

FAQs

Last updated on 16 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc