s3-tools

0.0.16 • Public • Published

Examples

 
let fs = require('fs')
let path = require('path')
let tools = require('s3-tools')
 
let stream = fs.createReadStream(path.join(__dirname, 'some-document.txt'))
 
tools = tools({ bucket: 'printawesome' })
 
tools.streamUpload(stream, {
  key: 'test.txt',
  tags: [{
    Key: 'tag1', Value: 'value1'
  }]
})
  .then(result => console.log(result))
  .catch(err => console.log(err))
 

Readme

Keywords

none

Package Sidebar

Install

npm i s3-tools

Weekly Downloads

8

Version

0.0.16

License

ISC

Unpacked Size

115 kB

Total Files

7

Last publish

Collaborators

  • menubar