UNPKG

@gensx/storage

Version:

Cloud storage, blobs, sqlite, and vector database providers/hooks for GenSX.

22 lines (18 loc) 570 B
/** * Check out the docs at https://www.gensx.com/docs * Find us on Github https://github.com/gensx-inc/gensx * Find us on Discord https://discord.gg/F5BSU8Kc */ import { BlobClient } from './blobClient.js'; /** * Hook to access a blob * @param key The name of the blob to access * @param options Optional configuration properties for the blob * @returns A blob object for the given key */ function useBlob(key, options = {}) { const client = new BlobClient(options); return client.getBlob(key); } export { useBlob }; //# sourceMappingURL=useBlob.js.map