Library for converting between otpauth-migration URIs (Google Authenticator transfer format) and standard otpauth URIs. Current version 1.0.0. Provides bidirectional conversion: decode migration URIs into individual otpauth URI strings, and encode a list of otpauth URIs back into a migration URI. Uses TypeScript with full type definitions. Designed for browser and Node.js (ESM/CJS). No runtime dependencies. Key differentiator: dedicated converter for the migration format used by Google Authenticator and compatible apps, filling a gap not covered by more general OTP libraries.
npm install otpauth-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows bidirectional conversion: decode a migration URI into otpauth URIs, then encode back to migration URI.
Check otpauth-migration specification for supported parameters; validate decoded URIs.
Ensure the migration URI is properly base64-encoded and follows the expected format.
Validate each URI before passing to toOTPAuthMigrationURI. Use otpauth library for parsing if needed.
Use import { URI } from 'otpauth-migration' (ESM). If using CommonJS, consider dynamic import.Run 'npm install otpauth-migration' or 'yarn add otpauth-migration'.
Use Node.js >=14, add 'type': 'module' to package.json, or use dynamic import.
No dependency data recorded yet.