Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@dkh-dev/parse-argv

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dkh-dev/parse-argv

Parse process arguments

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
25
150%
Maintainers
1
Weekly downloads
 
Created
Source

parseArgv

Parse process arguments

Installation

$ yarn install @dkh-dev/parse-argv

Examples

Example 1

// index.ts

import parseArgv from '@dkh-dev/parse-argv';

console.log(parseArgv(argv));
// ts-node index.ts --a=b -c d e -f "g h" -i=j --k l -m 0
// => { a: 'b', c: 'd', f: 'g h', m: '0' }

Keywords

argv

FAQs

Package last updated on 18 Sep 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