1.2.2 • Published 9 years ago

persist-request v1.2.2

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

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 */);