
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@frattaro/unpkg-server
Advanced tools
UNPKG is a fast, global content delivery network for everything on npm.
unpkg-server is a distribution of UNPKG you can run on your own network with your own private npm registry
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
These values can be set on the system environment when starting the unpkg server.js
.
Flag | Options / Description | Default value |
---|---|---|
NPM_REGISTRY_URL | optional - private registry url | https://registry.npmjs.org |
PORT | optional - port to listen on | 8080 |
GOOGLE_CLOUD_PROJECT | The GCP project ID. | null |
GAE_ENV | standard to enable @google-cloud/trace-agent | null |
DEBUG | enableDebugging | false |
ENABLE_CLOUDFLARE | optional true or false | false |
ORIGIN | optional | https://unpkg.com |
CLOUDFLARE_EMAIL | optional | null |
CLOUDFLARE_KEY | optional | null |
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.
Flag | Options / Description | Default value |
---|---|---|
BUILD_ENV | production or development | development |
NODE_ENV | production , staging or development | development |
Please visit the UNPKG website to learn more about how to use it.
Our sponsors and backers are listed in SPONSORS.md.
FAQs
The CDN for everything on npm
The npm package @frattaro/unpkg-server receives a total of 1 weekly downloads. As such, @frattaro/unpkg-server popularity was classified as not popular.
We found that @frattaro/unpkg-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.