Skip to content

Cafeine-Software/argv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple and lightweight module to parse command line arguments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published