@toolbarthomas/argumentje
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Argumentje

Argumentje is a Node.js Module designed to simplify the process of parsing command line interface (CLI) arguments and transforming them into a valid object. With argumentje, handling command line arguments becomes straightforward and efficient.

Setup

You can install argumentje via npm:

$ npm install @toolbarthomas/argumentje

Usage

Here's a simple example to demonstrate how to use Argumentje:

// $ node ./index.js --minify --path=foo --debug=false

import { parse} from '@toolbarthomas/argumentje'

const args = parse()

// Output: { debug: false, minify: true, path: "foo" }

API

argumentje(args)

args: An array of CLI arguments, typically process.argv.

License

argumentje is licensed under the MIT License. See the LICENSE file for more details.

Readme

Keywords

Package Sidebar

Install

npm i @toolbarthomas/argumentje

Weekly Downloads

12

Version

0.1.3

License

MIT

Unpacked Size

15.8 kB

Total Files

15

Last publish

Collaborators

  • toolbarthomas