npm.io
1.0.8 • Published 7 years ago

the-s3

Licence
MIT
Version
1.0.8
Deps
4
Size
44 kB
Vulns
1
Weekly
0
DeprecatedThis package is deprecated

the-s3

Build Status npm Version JS Standard

S3 upload helper

Installation

$ npm install the-s3 --save

Usage

'use strict'

const {TheS3} = require('the-s3')

async function tryExample () {
  const s3 = new TheS3({
    accessKeyId: 'xxxxx',
    bucket: 'myBucket01',
    region: 'ap-northeast-1',
    secretAccessKey: 'xxxxxxxxx',
    signatureVersion: 'v4',
  })

  await s3('some-text.txt', {})
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Keywords