Nerdy People Matriculate

    jose
    TypeScript icon, indicating that this package has built-in type declarations

    4.11.1 • Public • Published

    jose

    "JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.

    Implemented specs & features

    The following specifications are implemented by jose

    The test suite utilizes examples defined in RFC7520 to confirm its JOSE implementation is correct.

    💗 Help the project

    Dependencies: 0

    Documentation

    example ESM import

    import * as jose from 'jose'

    example CJS require

    const jose = require('jose')

    example Deno import

    import * as jose from 'https://deno.land/x/jose@v4.11.1/index.ts'

    Supported Runtimes

    The supported JavaScript runtimes include ones that support the utilized Web API globals and standard built-in objects or are Node.js

    These are (this is not an exhaustive list):

    FAQ

    Supported Versions

    Version Security Fixes 🔑 Other Bug Fixes 🐞 New Features
    v4.x
    v3.x, v2.x, v1.x

    Uint8Array?!

    • Whenever Uint8Array is a valid input, so is Buffer since buffers are instances of Uint8Array.
    • Whenever Uint8Array is returned and you want a Buffer instead, use Buffer.from(uint8array).

    Bundle Size, Package Size, Tree Shaking

    Yes the bundle size is on the larger side, that is because each module is actually published multiple times so that it can remain truly without dependencies and be universal / isomorphic.

    Nevertheless, since each module can be required independently and is fully tree-shakeable, the install size should not be a cause for concern.

    Install

    npm i jose

    DownloadsWeekly Downloads

    2,829,920

    Version

    4.11.1

    License

    MIT

    Unpacked Size

    563 kB

    Total Files

    280

    Last publish

    Collaborators

    • panva