🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More →
Socket
Book a DemoSign in
Socket

@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.0.0
Version published
Weekly downloads
69
2200%
Maintainers
1
Weekly downloads
 
Created
Source

parseArgv

Parse process arguments

Installation

npm 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 21 Feb 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