persist-request

1.2.2 • Public • Published

persist-request Build Status

persist-request will download a file and cache it in a user specified cache directory. Subsequent requests to the same file will be returned a stream from the cache rather than from the original source.

Install

npm install --save persist-request

Usage

var persistRequest = require('persist-request')('/tmp/');
 
var stream = persistRequest.get('http://example.com/example.tar.gz');
 
stream.pipe(/* to whatever */);

Package Sidebar

Install

npm i persist-request

Weekly Downloads

6

Version

1.2.2

License

ISC

Last publish

Collaborators

  • leahcimic