Skip to content

Download a file from the internet and persist it in a cache directory.

Notifications You must be signed in to change notification settings

leahciMic/persist-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Download a file from the internet and persist it in a cache directory.

Resources

Stars

Watchers

Forks

Packages

No packages published