Convenience wrapper around detectIncognito that resolves to the boolean verdict only. Drop-in compatible with v1's default export.
import { isIncognito } from 'is-incognito-mode';if (await isIncognito({ timeoutMs: 5000 })) { showPaywall();} Copy
import { isIncognito } from 'is-incognito-mode';if (await isIncognito({ timeoutMs: 5000 })) { showPaywall();}
See detectIncognito — including TIMEOUT and ABORTED when timeoutMs / signal are used.
TIMEOUT
ABORTED
timeoutMs
signal
Convenience wrapper around detectIncognito that resolves to the boolean verdict only. Drop-in compatible with v1's default export.