0.6.8 • Published 2 years ago

procmd v0.6.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

procmd

Run node.js script or npm global package with http proxy.

Installation

npm i procmd -g

Usage

set your http proxy server by environment variable http_proxy

export http_proxy=http://11.22.33.44:8080

then you can execute your command like this

procmd command|script [options]

example

procmd npm i typescript
procmd ./fetch.js

procmd options

optiondescription
-vprint procmd's version
--helpprint help message

example

procmd -v
procmd --help

How It Works

  • read http_proxy from environment variable and set http.globalAgent and https.globalAgent as the default Agent for all HTTP(S) client requests
  • find the script file path and load it
  • pass the command line parameters correctly
  • http proxy only works in the main process
0.6.8

2 years ago

0.6.6

2 years ago

0.6.5

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago