JSPM

json-web-key

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2032
  • Score
    100M100P100Q138884F
  • License MIT

JSON Web Key

Package Exports

  • json-web-key

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (json-web-key) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JSON Web Key

npm npm license npm downloads build status

Install via npm

$ npm install --save json-web-key

Usage

var JSONWebKey = require( 'json-web-key' )
// Constructing a JWK from PEM data
var webKey = JSONWebKey.fromPEM( '-----BEGIN PUBLIC KEY-----\nMIIBIjANB...' )
// Constructing a JWK from JSON data
var webKey = JSONWebKey.fromJSON({
  "kty": "RSA",
  "n": "oL9U7lsMfBGZiFO...",
  "e": "AQAB"
})

API Reference