@cloudpss/object-storage
v0.6.42
Published
Downloads
454
Readme
@cloudpss/object-storage
Object storage type definitions for cloudpss APIs. And plugin for @cloudpss/http-client, provides cloudpss object storage APIs.
Example
import { HttpClient } from '@cloudpss/http-client';
import { ObjectStoragePlugin } from '@cloudpss/object-storage/plugin';
const http = new HttpClient({/* config */}).use(ObjectStoragePlugin());
const hash = await http.storage.put('test');
const valid = await http.storage.has(hash);