Skip to main content

Yandex Disk Client Library

Yandex Disk Client #

Yandex Disk Client is a robust Node.js client specifically tailored for interacting with the Yandex Disk service. Designed exclusively for Node.js environments, it facilitates streamlined operations with Yandex’s cloud storage.

Please note that as of now, it supports only login-password authentication, making it simple and straightforward to use.

Features #

  • Under active development - This project is continually being improved and updated, meaning it’s always ready to leverage the latest Node.js features and enhancements.

  • Supports all common operations with cloud storage - Whether you need to create a folder, upload/download a file, or remove a file, Yandex Disk Client has got you covered.

Getting Started #

You can start by installing the library using npm:

npm install yandex-disk-client

Here is a simple usage example:

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();

Contribute #

This library is currently not under active development. If there’s a feature you’d like to see or an issue you’ve encountered, don’t hesitate to open a pull request on Github.