🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lib-cmdparse

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-cmdparse

Parse a shell-style command line

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 13 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts