Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jwk-to-pem

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwk-to-pem - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "jwk-to-pem",
"version": "2.0.0",
"version": "2.0.1",
"description": "Convert a JSON Web Key to a PEM",

@@ -5,0 +5,0 @@ "main": "src/jwk-to-pem.js",

@@ -6,2 +6,8 @@ 'use strict';

/**
*
* @param {{kty:'EC', crv:string, d:string, x?:string, y?:string} | {kty:'EC', crv:string, x:string, y:string} | {kty:'RSA', e:string, n:string, d?:string, p?:string, q?:string, dp?:string, dq?:string, qi?:string}} jwk
* @param {{private:boolean}=} opts
* @returns {string}
*/
function jwkToBuffer(jwk, opts) {

@@ -8,0 +14,0 @@ if ('object' !== typeof jwk || null === jwk) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc