yandex-disk-client

This is Javascript client for Yandex Disk service. It's designed to work in node.js environment and supports only login-password auth.

Usage no npm install needed!

<script type="module">
  import yandexDiskClient from 'https://cdn.skypack.dev/yandex-disk-client';
</script>

README

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