get-them-args alternatives and similar modules
Based on the "Command Line Utilities" category.
Alternatively, view get-them-args alternatives based on common mentions on social networks and blogs.
-
KeyboardJS
A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts. -
omelette
Omelette is a simple, template based autocompletion tool for Node and Deno projects with super easy API. (For Bash, Zsh and Fish) -
log-update
Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc. -
insight
Node.js module to help you understand how your tool is being used by anonymously reporting usage metrics to Google Analytics -
multispinner
Multiple, simultaneous, individually controllable spinners for concurrent tasks in Node.js CLI programs -
ANSI Styles
ANSI Colors in Node.js. Small and fast CJS/ESM module to colorize terminal output. Supports Bun, Deno, Next.JS.
SaaSHub - Software Alternatives and Reviews
![SaaSHub Logo SaaSHub Logo](https://cdn-b.libhunt.com/assets/partners/saashub-small-09b040e303cf50000aca670e1c77a15c64fc5c073fbdca2665ec2b8b621efc1a.png)
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of get-them-args or a related project?
README
get-them-args
Parse argument options
Table of Contents
About
Simple CLI argument parser hacked from minimist that adds support for objects and additional initialization options.
Install
$ npm install --save get-them-args
# Or
$ yarn add get-them-args
Usage
To use, provide arguments as argument:
const parse = require('get-them-args')
const options = {} // Options to be passed. CURRENTLY NONE AVAILABLE
// $ node ./example.js --dir . --command foo
console.log(parse(process.argv.slice(2) ))
// { unknown: [], dir: '.', command: 'foo' }
console.log(parse(process.argv))
// { unknown: [], dir: '.', command: 'foo' }
console.log(parse())
// { unknown: [], dir: '.', command: 'foo' }
For example, if the arguments provided are --hello world --parse=all --no-drugs --make-friends -n 4 -t 5
, the function will return:
{ unknown: [],
hello: 'world',
parse: 'all',
drugs: false,
'make-friends': true,
n: 4,
t: 5
}
There is also support for parsing objects:
$ node example.js --headers={"Foo": "5", "bar": "6"}
# { unknown: [], headers: { Foo: 5, bar: 6 } }
All unparsed arguments will end up in the unknown
array. The following types of arguments are supported:
--key=value
--key value
--key # true
--no-key # false
-key=value
-key value
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT
*Note that all licence references and agreements mentioned in the get-them-args README section above
are relevant to that project's source code only.