🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@dot-event/argv

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dot-event/argv

dot-event process.argv parser

latest
Source
npmnpm
Version
3.0.2
Version published
Weekly downloads
33
37.5%
Maintainers
1
Weekly downloads
 
Created
Source

@dot-event/argv

dot-event process.argv parser

argv

Install

npm install dot-event @dot-event/argv

Usage

var dot = require("dot-event")()
require("@dot-event/argv")(dot)

var args = dot.argv()
expect(args).toEqual({ _: ["arg"], opt: true })

Options

var args = dot.argv({
  args: ["arg", "-o"],
  alias: { o: ["opt"] },
})
expect(args).toEqual({ _: ["arg"], o: true, opt: true })

Credits

This project uses getopts for argument parsing.

Keywords

dot-event

FAQs

Package last updated on 01 Apr 2019

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