Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frattaro/unpkg-server

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frattaro/unpkg-server

The CDN for everything on npm

  • 0.0.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

UNPKG-SERVER

Travis Build Badge

UNPKG is a fast, global content delivery network for everything on npm.

unpkg-server

unpkg-server is a distribution of UNPKG you can run on your own network with your own private npm registry

Private Hosting

Install unpkg-server locally. (Global install is not yet supported)

npm i unpkg-server

Start the server:

node node_modules/unpkg-server/server.js \
  --NPM_REGISTRY_URL=https://private-npm-registry.example.org \
  --PORT=8081

Caution: if your registry is using self-signed certificates, you can accept the cert by setting the following flag. Use at your own risk

--NODE_TLS_REJECT_UNAUTHORIZED=0

CLI Options

These values can be set on the system environment when starting the unpkg server.js.

FlagOptions / DescriptionDefault value
NPM_REGISTRY_URLoptional - private registry urlhttps://registry.npmjs.org
PORToptional - port to listen on8080
GOOGLE_CLOUD_PROJECTThe GCP project ID.null
GAE_ENVstandard to enable @google-cloud/trace-agentnull
DEBUGenableDebuggingfalse
ENABLE_CLOUDFLAREoptional true or falsefalse
ORIGINoptionalhttps://unpkg.com
CLOUDFLARE_EMAILoptionalnull
CLOUDFLARE_KEYoptionalnull

Build Options

Use a .env file to set the following options when building the app with npm run build. These values will be bundled into the built server.js file.

FlagOptions / DescriptionDefault value
BUILD_ENVproduction or developmentdevelopment
NODE_ENVproduction, staging or developmentdevelopment

Documentation

Please visit the UNPKG website to learn more about how to use it.

Sponsors

Our sponsors and backers are listed in SPONSORS.md.

FAQs

Package last updated on 26 Jan 2021

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