The npm registry dishes up extensive JSON info about its modules, but it doesn't support CORS. Enter the proxy!
- http://npm-registry-cors-proxy.herokuapp.com/request
- http://npm-registry-cors-proxy.herokuapp.com/minimatch
- http://npm-registry-cors-proxy.herokuapp.com/cors
$(function() {
var url = "http://npm-registry-cors-proxy.herokuapp.com/colors";
return $.getJSON(url, function(module) {
console.log(module);
});
});
Check out a sample on codepen.io.