Get support for jcubic/lily
If you're new to LTH, please see our FAQ for more information on what it is we do.
Qualified Helpers
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.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2024 © lth-dev incorporated
p-e622a1a2