UNPKG

@musakui/fedi

Version:
10 lines (7 loc) 263 B
import { createPublicKey } from 'crypto' /** * Derives the public key from an RSA private key * @param {string} key private key */ export const fromPrivate = (key) => createPublicKey({ key }).export({ format: 'pem', type: 'spki' }) export * from './core.js'