A simple, lightweight s3 client. Only 2 dependencies total.
Iet uz failu
AJ ONeal d26ab16475 v1.0.3: add bin 2020-03-16 20:38:50 -06:00
bin v1.0.3: add bin 2020-03-16 20:38:50 -06:00
.gitignore v1.0.2: improve docs and error messages 2020-03-16 19:58:31 -06:00
.jshintrc v1.0.0: a diet s3 client 2020-03-12 04:26:31 -06:00
.prettierrc v1.0.0: a diet s3 client 2020-03-12 04:26:31 -06:00
LICENSE v1.0.0: a diet s3 client 2020-03-12 04:26:31 -06:00
README.md v1.0.2: improve docs and error messages 2020-03-16 19:58:31 -06:00
index.js treat host properly 2020-03-16 20:32:45 -06:00
package-lock.json treat host properly 2020-03-16 20:32:45 -06:00
package.json v1.0.3: add bin 2020-03-16 20:38:50 -06:00
test.bin v1.0.0: a diet s3 client 2020-03-12 04:26:31 -06:00
test.js v1.0.2: improve docs and error messages 2020-03-16 19:58:31 -06:00

README.md

s3.js | a Root project

Minimalist S3 client

A lightweight alternative to the s3 SDK that uses @root/request and aws4.

  • set()
  • get()
  • head()
  • delete()
s3.set({
    accessKeyId,
    secretAccessKey,
    region,
    bucket,
    prefix,
    key,
    body,
    size
})

If the body is a stream then size must be set to fs.statSync(filePath).size, or the request will fail:

501
<Code>NotImplemented</Code><Message>A header you provided implies functionality that is not implemented</Message>