@funish/argv
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @funish/argv

      Weekly Downloads

      48

      Version

      0.0.3

      License

      MIT

      Unpacked Size

      5.43 kB

      Total Files

      5

      Last publish

      Collaborators

      • demomacro