Skip to content

A dependency free, lightweight, and flexible, utility function to simplify working with process arguments.

License

Notifications You must be signed in to change notification settings

Cloudwell-IO/process-args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudwell Process Args

A lightweight, dependency free, flexible, utility function to simplify working with Node process arguments.

How to install:

npm i @cloudwell/process-args

How to use:

// Bring in the function from the package
const getProcessArgs = require("@cloudwell/process-args")

// Parse the arguments from the process
const args = getProcessArgs()

// Log the parsed arguments
console.log(args)

/*

Save this script and run it with node.

Command:
node script.js --my-arg Value

Output:
{
  "my-arg": "Value"
}

*/

About

A dependency free, lightweight, and flexible, utility function to simplify working with process arguments.

Topics

Resources

License

Stars

Watchers

Forks