@alttiri/base85
Advanced tools
Comparing version 1.7.5 to 1.7.6
{ | ||
"name": "@alttiri/base85", | ||
"version": "1.7.5", | ||
"version": "1.7.6", | ||
"description": "Pretty fast base85 JavaScript library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/alttiri/base85", |
@@ -72,3 +72,36 @@ # base85 | ||
--- | ||
# *.d.ts | ||
```ts | ||
/** 85 unique characters string */ | ||
type CharSet = string; | ||
/** | ||
* Returns Base85 string. | ||
* @param {Uint8Array} ui8a - input data to encode | ||
* @param {"ascii85" | "z85" | string} [charset="z85"] - 85 unique characters string | ||
* @return {string} | ||
* */ | ||
export declare function encode(ui8a: Uint8Array, charset?: "ascii85" | "z85" | CharSet): string; | ||
/** | ||
* Decodes Base85 string. | ||
* @param {string} base85 - base85 encoded string | ||
* @param {"ascii85" | "z85" | string} [charset="z85"] - 85 unique characters string | ||
* @return {Uint8Array} | ||
* */ | ||
export declare function decode(base85: string, charset?: "ascii85" | "z85" | CharSet): Uint8Array; | ||
/** Alias to `encode`. */ | ||
export declare const encodeBase85: typeof encode; | ||
/** Alias to `decode`. */ | ||
export declare const decodeBase85: typeof decode; | ||
declare const base85: { | ||
encode: typeof encode; | ||
decode: typeof decode; | ||
encodeBase85: typeof encode; | ||
decodeBase85: typeof decode; | ||
}; | ||
export default base85; | ||
``` | ||
--- | ||
@@ -75,0 +108,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13372
167