1.0.2 • Published 6 years ago

@shcallaway/ez-s3 v1.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

Easy S3

Simple module for reading from and writing to S3.

Usage

Download an object to memory:

client
.download('my-bucket', 'my-object')
.then(data => {});

Download an object to drive:

client
.download('my-bucket', 'my-object', true)
.then(data => {});

Upload a new object:

client.upload('my-bucket', 'new-file.txt', 'hello world');

Append data to an existing object:

client.append('my-bucket', 'my-object', 'hello world');

Authorization

This module assumes you have configured the AWS CLI on the host machine.

Installation

  1. Download: npm install @shcallaway/ez-s3 --save
  2. Require: const EasyS3 = require('ez-s3)
  3. Instantiate: const client = new EasyS3();
1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago