UNPKG

nostr-nsec-seedphrase

Version:

A comprehensive TypeScript library for Nostr key management with BIP39 seed phrases, supporting both ESM and CommonJS. Implements NIP-01, NIP-06, NIP-19, and NIP-26 with key generation, event signing, bech32 encoding/decoding, and secure cryptographic ope

14 lines (13 loc) 457 B
// Re-export everything from index export * from './index'; // Add browser-specific implementations or overrides here import { Buffer } from 'buffer'; if (typeof window !== 'undefined') { window.Buffer = Buffer; } // Add any browser-specific initialization code here const isBrowser = typeof window !== 'undefined'; if (isBrowser) { // Initialize any browser-specific features console.log('NostrNsecSeedphrase loaded in browser environment'); }