Détail du package

base64url-universal

digitalbazaar100.7kBSD-3-Clause2.0.0

Encode/decode "Base64url Encoding" format of JSON Web Signature (JWS) RFC7517.

base64, base64url

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.

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.

changelog

base64url-universal ChangeLog

2.0.0 - 2022-06-01

Changed

  • BREAKING: Remove packaged dist/ dir.
  • BREAKING: Convert to module (ESM).
  • BREAKING: Require Node.js >=14.x.
  • Update dependencies.
  • Lint module.

1.1.0 - 2019-08-22

Added

  • Add webpack build.

1.0.1 - 2019-07-03

Changed

  • Fix package description.
  • Fix engine version specifier.

1.0.0 - 2019-02-19

  • See git history.