cli-list is a utility package designed to parse command-line argument lists, typically sourced from `process.argv`, into a structured array of arrays. It specializes in breaking down a single array of arguments, where items might be comma-separated, into sub-arrays at each comma delimiter. This maintains the "argv style" of the sub-arrays, making them suitable for direct consumption by other command-line argument parsers like `minimist`. The current stable version is 1.0.0, which was released recently and updated the codebase to modern JavaScript standards while strictly enforcing a minimum Node.js engine requirement of 18.0.0. The package has a focused scope, providing a clear solution for preprocessing CLI arguments that utilize comma-separated values, acting as an essential parsing layer before more complex option handling.
npm install cli-listVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to parse a raw `process.argv` style array with `cli-list` and then further process each resulting sub-array using `minimist`.
Upgrade your Node.js environment to version 18 or higher using tools like `nvm` or your system's package manager.
For CommonJS projects, use `const list = require('cli-list');`. For ESM projects, ensure your `package.json` has `"type": "module"` and your bundler/Node.js version supports CJS-ESM interop for default exports, using `import list from 'cli-list';`.Upgrade your Node.js environment to version 18 or higher. Use `node --version` to check your current Node.js version.
No dependency data recorded yet.