Skip to content

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.

License

Notifications You must be signed in to change notification settings

Pterko/yandex-disk-client

Repository files navigation

Yandex Disk Client

Snyk Vulnerabilities for npm package version npm Libraries.io dependency status for latest release Codecov

Docs

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks