@ringkasan.net/storage-handler
v1.2.11
Published
storage handler for ringkasan.net
Downloads
677
Readme
Usage:
let fileResult: { url: string; name: string };
const storageHandler = new StorageHandler();
console.log("testing storage");
fileResult = await storageHandler.uploadFileToGcs(
"https://www.orimi.com/pdf-test.pdf",
"application/pdf",
);
await storageHandler.checkFileExist(fileResult.name)
await storageHandler.getUrlContentType(fileResult.url)
await storageHandler.deleteFileFromGcs(fileResult.name);