🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

yargs-unparser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yargs-unparser

Converts back a yargs argv object to its original array form

2.0.0
latest
100

Supply Chain Security

100

Vulnerability

96

Quality

80

Maintenance

100

License

Version published
Weekly downloads
6.8M
-19.18%
Maintainers
3
Weekly downloads
 
Created

What is yargs-unparser?

The yargs-unparser npm package is used to reverse the process of parsing arguments. It takes an argv object, like the one yargs or minimist would generate, and turns it back into a string of command-line arguments. This can be useful for debugging, logging, or recreating command lines for subprocesses.

What are yargs-unparser's main functionalities?

Unparsing arguments

This feature allows you to take an argument object and convert it back into an array of command-line arguments.

const yargsUnparser = require('yargs-unparser');
const argv = { _: ['run'], 'file': 'test.js', 'verbose': true };
const unparsedArgs = yargsUnparser(argv);
console.log(unparsedArgs); // Output: ['run', '--file=test.js', '--verbose']

Other packages similar to yargs-unparser

FAQs

Package last updated on 02 Oct 2020

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