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.
You can install argumentje via npm
:
$ npm install @toolbarthomas/argumentje
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" }
args: An array of CLI arguments, typically process.argv.
argumentje is licensed under the MIT License. See the LICENSE file for more details.