Skip to content

martindale/procure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

procure

Build Status Coverage Status

transport-agnostic file procurer

Quick Start

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.