Reduct Storage Client SDK for JavaScript 0.6.0 was released
source link: https://dev.to/reduct-storage/reduct-storage-client-sdk-for-javascript-060-released-1bdp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Reduct Storage Client SDK for JavaScript 0.6.0 was released
This is a little update for people who follow news about Reduct Storage and its ecosystem.
Few days ago, we released Reduct Client SDK for JavaScript v0.6.0. It supports Reduct Storage HTTP API v0.7. Now you can iterate data for a time interval without asking a long list of timestamps:
for await (const record in bucket.query("entry-1", start_time, stop_time)) {
consol.log(record.ts, record.size);
const content = await record.read();
// or use pipe
const fileStream = fs.createWriteStream(`ts_${record.size}.txt`);
record.pipe(fileStream);
}
Read more about it here.
You can install the new version with npm:
npm i reduct-js
And try it with our demo server - https://play.reduct-storage.dev (API token is reduct
).
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK