cross-argv

2.0.0 • Public • Published

cross-argv

Cross platform normalization of process.argv.

npm install cross-argv

Basically makes arguments with single quote strings work node app.js 'foo bar' everywhere, which otherwise can cause issues when used in cmd.exe.

Usage

const xargv = require('cross-argv')
console.log(xargs()) // returns a normalized process.argv

API

argv = xargv([argv])

Returns a normalized argv array that looks the same cross platform.

If no args are passed it normalizes process.argv. Otherwise you can pass your own array.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i cross-argv

Weekly Downloads

70,628

Version

2.0.0

License

MIT

Unpacked Size

4.99 kB

Total Files

5

Last publish

Collaborators

  • mafintosh