New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nodesource/ncm-proxy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodesource/ncm-proxy

Local Proxy for NCM 2.0

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

ncm-proxy

Local Proxy for NCM 2.0.

About

This is a simple proxy server that is run locally on the computer doing the npm installations. When an install happens it will use the NCM API to look up score data and then either just log what was done or rewrite the proxied results to prevent installs of non-certified information.

Usage

Start an ncm proxy server on port 14313 (14=N, 3=C, 13=M):

$ NCM_TOKEN=xxx npx @nodesource/ncm-proxy

To obtain an ncm token please see the docs.

Then configure as your npm registry:

$ npm install express --registry=http://localhost:14313

Custom port

Set the PORT environment variable to launch on a different port:

$ NCM_TOKEN=xxx PORT=8080 npx @nodesource/ncm-proxy

Custom registry

You can also use a different registry than the default https://registry.npmjs.org/:

$ NCM_TOKEN=xxx npx @nodesource/ncm-proxy https://registry.npmjs.org

Routes

All except listed routes are simply proxied through:

GET /:package

GET /@scope%2f:package

Rewrite tarball urls to point at the proxy.

GET /:package/-/:package-:version.tgz

GET /@:scope?/:package/-/:package-:version.tgz

Return 404 if the module has a score lower than 85 or is on the whitelist, otherwise proxy through.

Copyright © NodeSource.

Licensed under the MIT open source license, see the LICENSE file for details.

FAQs

Package last updated on 15 Jan 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc