Download files within npm packages and load them into memory
Here's what it does:
/tmp;/tmp;Download node at nodejs.org and install it, if you haven't already.
npm install npm-tarball-globber --save
var getFiles = require("npm-tarball-globber")
// Get all the files in the `minimist` package
getFiles("minimist", function(err, files){
console.log(err, Object.keys(files))
})
// Use globs to load only the files you need.
// See https://github.com/isaacs/minimatch#usage
getFiles("npm", "package/html/**/*.html", function(err, files){
console.log(err, Object.keys(files))
})
npm install
npm test
MIT
Generated by package-json-to-readme