pure-argv-parser
v1.0.4
Published
An ultra-lightweight command-line argument parser for Node.js with no external dependencies.
Downloads
14
Maintainers
Readme
Pure Argv Parser
An ultra-lightweight command-line argument parser for Node.js with no external dependencies.
Installation
npm install pure-argv-parserExample Usage
const parseArgs = require('pure-argv-parser');
const args = parseArgs();
console.log(args);Supported Formats
- --key=value
- --key value
- -k value (short option)
- --flag (boolean)
- -f (short boolean flag)
- command (positional args)
