1.0.1 • Published 9 months ago

@cafeine-software/argv v1.0.1

Weekly downloads
-
License
CC BY-SA 4.0
Repository
github
Last release
9 months ago

Argv.js

Node Npm

A simple and lightweight module to parse command line arguments

InstallationUsageLicenseContact

Installation

Install the package via npm:

npm install argv.js

Usage

Importing

import Argv from 'argv.js';

Basic Example

If you run the following script:

node script.js --verbose -f config.json --debug

The code:

const args = Argv.parse();
console.log(args);

Will output:

{
  verbose: true,
  f: 'config.json',
  debug: true
}

License

Contact

Developed by Quentin Lamamy.

1.0.1

9 months ago

1.0.0

9 months ago