Skip to content

isacvale/cliargs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

dvo/cliargs

dvo/cliargs is a simple piece of code used to interpret arguments given to NodeJS as key/value pairs. It will basically output arguments such as node script.js alpha beta -charlie delta --echo foxtrot into an object

cliargs = {
 "alpha":true,
 "beta":true,
 "c":true,
 "h":true,
 "a":true,
 "r":true
 "l":true,
 "i":true,
 "e":"delta",
 "echo":"foxtrot"
}

The script was first wrote as an answer to a stackoverflow question, but as I proceed to actually use it, it was simpler to add it to npm.

About

A simple interpreter fo Node cli arguments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published