nice-registry/npm-cdn

Name: npm-cdn

Owner: nice-registry

Description: ?? A webservice that dishes out files from npm packages

Created: 2014-12-02 07:34:28.0

Updated: 2017-11-26 16:53:06.0

Pushed: 2016-08-31 04:32:26.0

Homepage:

Size: 15

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

npm-cdn

A webservice that dishes out files from npm packages.

npm-cdn downloads tarballs from the npm registry and stores them on disk. First-time requests for a package are slow because the entire package tarball has to be fetched, but subsequent requests for files in the same package should be pretty fast.

Caveat npmtor: This is a proof of concept app. It works, but it's experimental. It's running on a single Heroku dyno so it won't scale. To become a real thing it will need to sit behind a CDN.

See also unpkg.com, a very similar project.

Usage

To access a file inside a published npm package, use the following pattern:

s://npm-cdn.herokuapp.com/{packageName}@{packageVersion}/{filePath}

Examples:

Indexes

When a package is downloaded, index files are generated in HTML and JSON format.

Redirects

If you request a package without specifying a version, you'll be redirected to the index for the latest version of the package:

Tests
install
test
Dependencies
Dev Dependencies
License

ISC

Generated by package-json-to-readme


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.