OD2 Temp Mail Android App is LIVE! 🎉
V1.3Get Early Access today on Google Play Store
Intelligent OTP extraction for modern applications. A robust, dependency-free utility to capture verification codes with context-aware heuristics.
Simple integration for any JavaScript environment.
Extract an OTP from a simple string. The library automatically identifies 4-8 digit codes while filtering out noise.
import { extractOTP } from '@onedaydevelopers/otp-detector';
const text = "Your verification code is 5824.";
const otp = extractOTP(text);
console.log(otp); // "5824"Frequently asked questions about the OTP Detector library.
Support our work to keep these tools free and open for everyone.