Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.

LILY

LILY is very simple option parser inspired by YARGS with no dependencies

LILY stands for LILY Is Like Yargs

Installation

npm install --save-dev @jcubic/lily

Usage

#!/usr/bin/env node
const lily = require('@jcubic/lily');

const options = lily(process.argv.slice(2), {boolean: ['b']});

if you run the script with:

./script -l 10 --hello 20 -asb one two three

you will get this object as result:

{
    "_": [
        "one",
        "two",
        "three"
    ],
    "l": "10",
    "hello": "20",
    "a": true,
    "s": true,
    "b": true
}

License

Copyright (C) 2020-2021 Jakub T. Jankiewicz

Released under MIT license

About

Simple JavaScript options parser inspired by yargs

Resources

Releases

No releases published

Packages

No packages published