lib-cmdparse

0.1.0 • Public • Published

Command Parser

Install

npm install --save lib-cmdparse

How it Works

Command parser changes this:

USER=bob PASS=hunter2 ./cmd -opt1=bla -opt2=bla x y z

into this:

{
  envs: {
    "USER": "bob",
    "PASS": "hunter2"
  },
  exec: "./cmd",
  args: ["-otp1=bla", "0opt2=bla", "x", "y", "z"]
}

Readme

Keywords

none

Package Sidebar

Install

npm i lib-cmdparse

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • groundwater