Skip to content

This module calculates the total size of a folder inside of S3.

Notifications You must be signed in to change notification settings

XervoIO/aws-s3-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS S3 Folder Size Calculator

This module does one thing. It will calculate the total size of a folder inside of S3.

Installation

npm install aws-s3-size

Example Usage

var S3Sizer = require('aws-s3-size');
configFile = __dirname + '/awscreds.json',
s3Sizer = new S3Sizer({configFile : configFile});

s3Sizer.getFolderSize('bucket.name', 'foldername', function(err, size) {
  console.log(size)
});

If you already have s3 instance, you can pass it in parameter:

    var s3 = new AWS.S3();
    s3Sizer = new S3Sizer({"s3": s3});

About

This module calculates the total size of a folder inside of S3.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •