# @types/pem-jwk

> TypeScript definitions for pem-jwk

Latest version **2.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/pem-jwk
pnpm add @types/pem-jwk
yarn add @types/pem-jwk
bun add @types/pem-jwk
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2023-11-07 |
| First published | 2018-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51434 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/pem-jwk
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pem-jwk
- npm.io page: https://npm.io/package/@types/pem-jwk

## Recent versions

- 2.0.2 (latest) — 2023-11-07
- 2.0.0 (ts3.8) — 2022-02-25
- 1.5.1 (ts3.6) — 2021-07-08
- 1.5.0 (ts2.0) — 2018-06-13
- 2.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/pem-jwk`

# Summary
This package contains type definitions for pem-jwk (https://github.com/dannycoates/pem-jwk).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pem-jwk.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pem-jwk/index.d.ts)
````ts
export interface RSA_JWK {
    kty: string;
    n: string;
    e: string;
    d?: string | undefined;
    p?: string | undefined;
    q?: string | undefined;
    dp?: string | undefined;
    dq?: string | undefined;
    qi?: string | undefined;
}

export interface Extras {
    [key: string]: Extras | string | boolean | number;
}

export type JWK<T extends Extras> = RSA_JWK & T;

export function pem2jwk<T extends Extras>(rsa_pem: string, extras?: T): JWK<T>;
export function jwk2pem(rsa_jwk: RSA_JWK): string;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Alessio Paccoia](https://github.com/alessiopcc).

---
_Source: https://npm.io/package/@types/pem-jwk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
