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"]
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i lib-cmdparse

    Weekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • groundwater