@funish/argv
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.