yandex-disk-client
v0.3.3
Published
This is Javascript client for Yandex Disk service. It's designed to work in node.js environment and supports only login-password auth.
Downloads
7
Maintainers
Readme
Yandex Disk Client
This is Node.js client for the Yandex Disk service. It's designed to work only in node.js environment and supports only login-password auth.
Currently, this module is under active development, so feel free to fill an issue if you need some feature or you're experiencing some problem.
This module supports all common operations with cloud storage (create a folder, upload a file, download a file, remove a file, etc...);
A simple example of how to use this module:
const { YandexDiskClientAuth } = require('yandex-disk-client');
const authClass = new YandexDiskClientAuth(creds.login, creds.password);
await authClass.logIn();
const client = authClass.getClientInstance();
// To get resources
const resources = await client.getFolderResources('/');
// To get available quota
const quota = await client.getQuota();