# minimist

> Minimal command-line argument parser for Node.js

Source: https://talira.ai/catalog/minimist-xjjkaag0
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / cli frameworks](https://talira.ai/categories/libraries/cli-frameworks), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [James Halliday](https://talira.ai/orgs/james-halliday.md)

minimist is a small Node.js library that parses command-line arguments into an object: short and long flags, grouped short flags, --key=value and --no-flag forms, with non-option arguments collected in an array. Options treat named arguments as strings or booleans, map aliases, set defaults, stop at the first non-option, split off everything after --, and call a function for unknown options. It's the core of optimist's argument parser without the extras. For a full CLI framework with commands and help text, [yargs](https://talira.ai/catalog/yargs-y8jq9yaq.md) is the larger option.

## Links

- GitHub: https://github.com/minimistjs/minimist

## Problems it solves

- parse command-line flags in a small Node.js script
- turn process.argv into an object of options
- read --key=value arguments in Node without a big CLI framework

## Features

- parses short, long, grouped and --no- flags into an object
- string, boolean, alias and default options
- stop at the first non-option, or split off arguments after --
- callback for unknown options
- CommonJS and ES module imports

## Trust

Overall: 0.34 out of 1.
Signals: maintenance 0.27, adoption 0.56, momentum 0.35, community 0.54, backing 0.30, extensibility 0.00.

- 665 GitHub stars
- 22 contributors
- accepts sponsorship (Github, Github, Tidelift)
- backed by James Halliday

Warnings:

- last commit 11 months ago

## Alternatives

- [yargs](https://talira.ai/catalog/yargs-y8jq9yaq.md): Parse command-line arguments and build CLIs in Node.js
- [meow](https://talira.ai/catalog/meow-5dt57c23.md): Small helper for building Node.js command-line apps
- [Commander.js](https://talira.ai/catalog/commander-js-r3pn8w4k.md): The complete solution for Node.js command-line interfaces
- [oclif](https://talira.ai/catalog/oclif-jc7mkd43.md): Salesforce's open CLI framework for building Node.js command-line tools
- [Inquirer.js](https://talira.ai/catalog/inquirer-js-mxetm5dn.md): Interactive command-line prompts for Node.js

## Sources

[^1]: https://github.com/minimistjs/minimist/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/minimistjs/minimist/blob/main/LICENSE (checked 28 Nov 2026)
