The npm package nostr-tools supports this. https://www.npmjs.com/package/nostr-tools

import {nip19} from 'nostr-tools';

const npub = nip19.npubEncode(publicKey);

Reply to this note

Please Login to reply.

Discussion

Can't zap this 🥲

🫶

Is the node down or is it routes?

Seems to be working on my end 🤷‍♀️