Updated cache

Zakary Timson 2024-09-28 10:30:19 -04:00
parent 9851a2bdd6
commit f12139eb2b
4 changed files with 58 additions and 48 deletions

@ -4,6 +4,8 @@
- [array](array.md) - [array](array.md)
- [aset](aset.md) - [aset](aset.md)
- [cache](cache.md)
- [csv](csv.md)
- [emitter](emitter.md) - [emitter](emitter.md)
- [errors](errors.md) - [errors](errors.md)
- [files](files.md) - [files](files.md)

@ -4,9 +4,35 @@
## Functions ## Functions
### download() ### downloadFile()
> **download**(`href`, `name`?): `void` > **downloadFile**(`blob`, `name`): `void`
Download blob as a file
#### Parameters
**blob**: `string` \| `string`[] \| `Blob`
File as a blob
**name**: `string`
Name blob will be downloaded as
#### Returns
`void`
#### Defined in
src/files.ts:11
***
### downloadUrl()
> **downloadUrl**(`href`, `name`?): `void`
Download a file from a URL Download a file from a URL
@ -26,33 +52,7 @@ Override download name
#### Defined in #### Defined in
src/files.ts:10 src/files.ts:24
***
### downloadBlob()
> **downloadBlob**(`blob`, `name`): `void`
Download blob as a file
#### Parameters
**blob**: `Blob`
File as a blob
**name**: `string`
Name blob will be downloaded as
#### Returns
`void`
#### Defined in
src/files.ts:25
*** ***
@ -80,7 +80,7 @@ Array of selected files
#### Defined in #### Defined in
src/files.ts:37 src/files.ts:39
*** ***
@ -108,7 +108,7 @@ Interpolated filename, or the raw timestamp if name was omitted
#### Defined in #### Defined in
src/files.ts:60 src/files.ts:62
*** ***
@ -142,4 +142,4 @@ Promise of request with `onProgress` callback
#### Defined in #### Defined in
src/files.ts:72 src/files.ts:74

@ -24,6 +24,10 @@ Re-exports [BadGatewayError](errors.md#badgatewayerror)
Re-exports [BadRequestError](errors.md#badrequesterror) Re-exports [BadRequestError](errors.md#badrequesterror)
### Cache
Re-exports [Cache](cache.md#cachek-t)
### caseInsensitiveSort ### caseInsensitiveSort
Re-exports [caseInsensitiveSort](array.md#caseinsensitivesort) Re-exports [caseInsensitiveSort](array.md#caseinsensitivesort)
@ -44,6 +48,10 @@ Re-exports [CliEffects](logger.md#clieffects)
Re-exports [CliForeground](logger.md#cliforeground) Re-exports [CliForeground](logger.md#cliforeground)
### csv
Re-exports [csv](csv.md#csv)
### CustomError ### CustomError
Re-exports [CustomError](errors.md#customerror) Re-exports [CustomError](errors.md#customerror)
@ -68,13 +76,13 @@ Re-exports [deepMerge](objects.md#deepmerge)
Re-exports [dotNotation](objects.md#dotnotation) Re-exports [dotNotation](objects.md#dotnotation)
### download ### downloadFile
Re-exports [download](files.md#download) Re-exports [downloadFile](files.md#downloadfile)
### downloadBlob ### downloadUrl
Re-exports [downloadBlob](files.md#downloadblob) Re-exports [downloadUrl](files.md#downloadurl)
### encodeQuery ### encodeQuery

@ -50,7 +50,7 @@ Parts of a URL
#### Defined in #### Defined in
src/string.ts:180 src/string.ts:182
## Functions ## Functions
@ -78,7 +78,7 @@ Formated size
#### Defined in #### Defined in
src/string.ts:38 src/string.ts:30
*** ***
@ -102,7 +102,7 @@ Formated phone number
#### Defined in #### Defined in
src/string.ts:52 src/string.ts:44
*** ***
@ -141,7 +141,7 @@ console.log(insertAt('Hello world!', ' glorious', 5);
#### Defined in #### Defined in
src/string.ts:72 src/string.ts:64
*** ***
@ -171,7 +171,7 @@ Found matches.
#### Defined in #### Defined in
src/string.ts:160 src/string.ts:162
*** ***
@ -195,7 +195,7 @@ Hashed string
#### Defined in #### Defined in
src/string.ts:226 src/string.ts:228
*** ***
@ -243,7 +243,7 @@ Please use `String.padStart` & `String.padEnd`
#### Defined in #### Defined in
src/string.ts:93 src/string.ts:85
*** ***
@ -267,7 +267,7 @@ Parts of URL
#### Defined in #### Defined in
src/string.ts:197 src/string.ts:199
*** ***
@ -291,7 +291,7 @@ Hexadecimal number as a string
#### Defined in #### Defined in
src/string.ts:27 src/string.ts:96
*** ***
@ -326,7 +326,7 @@ const randomByte = randomString(8, "01")
#### Defined in #### Defined in
src/string.ts:111 src/string.ts:113
*** ***
@ -369,7 +369,7 @@ const randomChar = randomString(1, true, true, true);
#### Defined in #### Defined in
src/string.ts:133 src/string.ts:135
*** ***
@ -393,4 +393,4 @@ Target
#### Defined in #### Defined in
src/string.ts:247 src/string.ts:249