@protontech/drive-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Drive SDK for web

Use only what is exported by the library. This is the public supported API of the SDK. Anything else is internal implementation that can change without warning.

Start by creating instance of the ProtonDriveClient. That instance has then available many methods to access nodes, devices, upload and download content, or manage sharing.

import { ProtonDriveClient, MemoryCache, OpenPGPCryptoWithCryptoProxy } from 'proton-drive-sdk';

const sdk = new ProtonDriveClient({
    httpClient,
    entitiesCache: new MemoryCache(),
    cryptoCache: new MemoryCache(),
    account,
    openPGPCryptoModule: new OpenPGPCryptoWithCryptoProxy(cryptoProxy),
});

Readme

Keywords

none

Package Sidebar

Install

npm i @protontech/drive-sdk

Weekly Downloads

7,120

Version

0.2.1

License

GPL-3.0

Unpacked Size

5.33 MB

Total Files

694

Last publish

Collaborators

  • epokk
  • guillaumez
  • mmso
  • edvincandon
  • flavien-bonvin
  • e1a0a0ea
  • gudmundur-proton
  • dborghino
  • mhorejsek
  • protontech-npm-bot