Socket
Socket
Sign inDemoInstall

procmd

Package Overview
Dependencies
6
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    procmd

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


Version published
Weekly downloads
1
Maintainers
1
Install size
143 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 21 Dec 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc