mirror of https://github.com/therootcompany/s3.js
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AJ ONeal
d26ab16475
|
4 years ago | |
---|---|---|
bin | 4 years ago | |
.gitignore | 4 years ago | |
.jshintrc | 4 years ago | |
.prettierrc | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
index.js | 4 years ago | |
package-lock.json | 4 years ago | |
package.json | 4 years ago | |
test.bin | 4 years ago | |
test.js | 4 years ago |
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>