Package Exports
- base64url-universal
- base64url-universal/lib/browser.js
- base64url-universal/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base64url-universal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base64url-universal
Encode/Decode input according to the "Base64url Encoding" format as specified in JSON Web Signature (JWS) RFC7517. A URL safe character set is used and trailing '=', line breaks, whitespace, and other characters are omitted.
- base64url-universal
- encode(input) ⇒
string⏏ - decode(input) ⇒
Uint8Array⏏
- encode(input) ⇒
encode(input) ⇒ string ⏏
Encodes input according to the "Base64url Encoding" format as specified in JSON Web Signature (JWS) RFC7517. A URL safe character set is used and trailing '=', line breaks, whitespace, and other characters are omitted.
Kind: Exported function
Returns: string - the encoded value.
| Param | Type | Description |
|---|---|---|
| input | Uint8Array | string |
the data to encode. |
decode(input) ⇒ Uint8Array ⏏
Decodes input according to the "Base64url Encoding" format as specified in JSON Web Signature (JWS) RFC7517. A URL safe character set is used and trailing '=', line breaks, whitespace, and other characters are omitted.
Kind: Exported function
Returns: Uint8Array - the decoded value.
| Param | Type | Description |
|---|---|---|
| input | string |
the data to decode. |