Created
August 7, 2013 20:07
-
-
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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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