Encode/decode "Base64url Encoding" format of JSON Web Signature (JWS) RFC7517.
npm install @digitalcredentials/base64url-universalbase64url Library _(@digitalcredentials/base64url-universal)_

> A Javascript isomorphic library for base64url text encoding, for Node.js, React Native and browsers
- Background
- Security
- Install
- Usage
- Contribute
- License
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.
TBD
- Node.js 16+ is recommended.
To install via NPM:
```
npm install @digitalcredentials/base64url-universal
To install locally (for development):
```
git clone https://github.com/digitalcredentials/base64url-universal.git
cd base64url-universal
npm install
* base64url-universal
* encode(input) ⇒ string ⏏
* decode(input) ⇒ Uint8Array ⏏
Kind: Exported function
Returns: string - the encoded value.
| Param | Type | Description |
| --- | --- | --- |
| input | Uint8Array \| string | the data to encode. |
Kind: Exported function
Returns: Uint8Array - the decoded value.
| Param | Type | Description |
| --- | --- | --- |
| input | string | the data to decode. |
PRs accepted.
If editing the Readme, please conform to the
standard-readme specification.
MIT License © 2023 Digital Credentials Consortium.