@types/jwk-to-pem
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/jwk-to-pem

Summary

This package contains type definitions for jwk-to-pem (https://github.com/Brightspace/node-jwk-to-pem#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwk-to-pem.

index.d.ts

export = jwkToBuffer;

declare function jwkToBuffer(jwk: jwkToBuffer.JWK, opts?: jwkToBuffer.Options): string;

declare namespace jwkToBuffer {
    interface Options {
        private: boolean;
    }

    interface EC {
        kty: "EC";
        crv: string;
        x: string;
        y: string;
    }

    interface ECPrivate {
        kty: "EC";
        crv: string;
        d: string;
        x?: string | undefined;
        y?: string | undefined;
    }

    interface RSA {
        kty: "RSA";
        e: string;
        n: string;
        d?: string | undefined;
        p?: string | undefined;
        q?: string | undefined;
        dp?: string | undefined;
        dq?: string | undefined;
        qi?: string | undefined;
    }

    type JWK = EC | ECPrivate | RSA;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Erik Silkensen.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.3
    67,034
  • 2.0.2
    2,564
  • 2.0.1
    96,550
  • 2.0.0
    11,943

Package Sidebar

Install

npm i @types/jwk-to-pem

Weekly Downloads

178,091

Version

2.0.3

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • types