JSPM

aws-s3-size

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 78
  • Score
    100M100P100Q68020F
  • License MIT

Simple module to calculate folder size in S3.

Package Exports

  • aws-s3-size

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aws-s3-size) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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)
});