Compare commits
3 Commits
ac1c6e6d59
...
498e8cca1c
Author | SHA1 | Date |
---|---|---|
AJ ONeal | 498e8cca1c | |
AJ ONeal | eff2395bde | |
AJ ONeal | ce7ec4d621 |
|
@ -34,10 +34,10 @@ s3.set({
|
||||||
bucket,
|
bucket,
|
||||||
prefix,
|
prefix,
|
||||||
key,
|
key,
|
||||||
body, // new Buffer("hello, world")
|
body, // Buffer.from("hello, world")
|
||||||
// or fs.createReadStream("./file.txt")
|
// or fs.createReadStream("./file.txt")
|
||||||
|
|
||||||
size // fs.stat("./file.txt").size (required for streams)
|
size // (await fs.stat("./file.txt")).size (required for streams)
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/s3",
|
"name": "@root/s3",
|
||||||
"version": "1.1.1",
|
"version": "1.1.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/s3",
|
"name": "@root/s3",
|
||||||
"version": "1.1.1",
|
"version": "1.1.3",
|
||||||
"description": "A simple, lightweight s3 client with only 2 dependencies",
|
"description": "A simple, lightweight s3 client with only 2 dependencies",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
Loading…
Reference in New Issue