Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This module calculates the total size of a folder inside of S3.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
README.md
index.js
package.json

README.md

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)
});
Something went wrong with that request. Please try again.