client-bucket
store file in browser cache
Install
Usage
import
;
browser suport
const isSuport: boolean = ClientBucketisSuport;
hasBucket
const has: boolean = await ClientBucket;
getBucket
const myPdfBucket: Bucket = ClientBucket;
OR
const myPdfBucket: Bucket = 'my-pdf-files';
add item to bucket
const data = 1000;const added: boolean = await myPdfBucket;
pick item from bucket
const response: Response | undefined = await myPdfBucket;if response const data = await response;
remove item from bucket
const itemRemoved: boolean = await myPdfBucket;
removeBucket
const bucketRemoved: boolean = await ClientBucket;
OR
const bucketRemoved: boolean = await myPdfBucketclear;
all buckets (name of buckets)
const buckets: Array<string> = await ClientBucket;
removeAllBucket
const allRemoved: boolean = await ClientBucket;