1.0.0 • Published 11 months ago
aws-s3y v1.0.0
aws-s3
Модуль работы с s3.
Пример
Инициализация
const S3 = require('@ktteam/aws-s3');
const s3 = new S3({
host,
port,
accessKey,
secretAccessKey,
bucket
})
Put
const s3_id = await s3.put(JSON.stringify({some: 'data'})); // md5 hash
Get
const data = await s3.get(s3_id); // "{some: 'data'})"
1.0.0
11 months ago