Skip to content

anvaka/corsregistry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 26, 2019
8f5681d · Jun 26, 2019

History

11 Commits
Feb 21, 2015
Jun 25, 2019
Feb 21, 2015
Jun 26, 2019
Mar 18, 2017
Feb 21, 2015

Repository files navigation

corsregistry

Note I switched to npm search API and to https://npmjs.cf/ (npm mirror) - both endpoints support CORS, so this repository is no longer needed.

Old readme

CORS enabled npm registry proxy. Primary goal of this repository is to provide data to https://github.com/anvaka/npmgraph.an

Since the npm registry does not support cors or jsonp I hacked this together to alleviate the problem.

The proxy reroutes all requests to https://skimdb.npmjs.com and returns CORS enabled response for whitelisted domains. The URL mapping is one to one.

install

With npm do:

npm install corsregistry

You can deploy this to your own heroku instance. Just make sure to update white-listed domains in the index.js.

license

MIT

About

CORS enabled npm registry proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published