Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example using new experimental Node.js parseArgs method ( - more new features covered at
import { parseArgs } from "node:util";
const args = parseArgs({
options: {
name: {
type: "string",
verbose: {
type: "boolean",
short: "v",
allowPositionals: true,
Copy link

DominusKelvin commented Jun 2, 2022


Copy link

mikeerickson commented Jun 2, 2022

Can't believe it has taken this long! Curious how long this will be an experimental flag

Copy link

ebukahills commented Jun 3, 2022

Cool stuff!

Copy link

zanniboni commented Jun 3, 2022


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment