amazon-s3-cache

0.0.3 • Public • Published

s3-cache

Enables reading files from Amazon S3 buckets with local caching

Example

 
var s3Cache = require('amazon-s3-cache');
 
s3Cache.configureAWS({
    region: 'us-west-2'
});
 
s3Cache.configureCacheDir('/');
 
s3Cache.getFile('bucket', 'key')
.on('error', function(error){
    console.log('ERROR');
    console.log(error);
})
.on('success', function(filePath){
    console.log('SUCCESS');
    console.log(filePath);
})
.on('complete', function(error, filePath){
    console.log('COMPLETE');
    console.log(error);
    console.log(filePath);
});
 

/amazon-s3-cache/

    Package Sidebar

    Install

    npm i amazon-s3-cache

    Weekly Downloads

    7

    Version

    0.0.3

    License

    ISC

    Last publish

    Collaborators

    • rehmanabdul
    • uzee