@cloudpss/object-storage
v0.5.43
Published
Object storage type definitions for cloudpss APIs. And plugin for `@cloudpss/http-client`, provides cloudpss object storage APIs.
Downloads
80
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);