Skip to content

Instantly share code, notes, and snippets.

@danfinlay
Created August 7, 2013 20:07
Show Gist options
  • Select an option

  • Save danfinlay/6178063 to your computer and use it in GitHub Desktop.

Select an option

Save danfinlay/6178063 to your computer and use it in GitHub Desktop.
My new approach to fetching README data for requirebin. Is the package.json getting cached?
function fetchReadme(bundleName, preferredVersions){
sandbox.bundle(bundleName, preferredVersions)
.on('bundleEnd', function(html){
//The HTML isn't what I wanted here, I want the full package.json,
//which Browserify CDN is already supplying.
//I'm having trouble tracking down where in browser-module-sandbox or browser-module-cache this is stored, if at all.
//Tips?
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment