Get support for jcubic/lily

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

jcubic/lily

LILY

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

LILY stands for LILY Is Like Yargs

In fact it's inspired by yargs-parser used by Yargs to parse the options.

Installation

npm install --save @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

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

ud-bd4760f4