transport-agnostic file procurer
var procure = require('procure');
procure('README.md', function(err, content) {
// content read from local file...
});
procure('http://www.google.com', function(err, webpage) {
// content read over HTTP, unparsed HTML provided
});
procure('https://api.github.com/repos/martindale/maki/releases', function(err, releases) {
// content is a JSON array of releases
});
Test coverage can be measured with a simple npm run coverage
.