handpicked · curated
is: add an email predicate and EmailString type
https://github.com/sindresorhus/is @ e9c026c611c1160eaad50da00be4e676b626018f
public
Language
node
License
MIT
Version
1.0.0
Issue
Add an `is.email(value)` predicate to the default `is` object. Accept ordinary addresses with exactly one `@`, a non-empty local part, a domain containing at least one dot, a TLD of two or more letters, and no whitespace. Reject malformed values. Add and export a branded `EmailString` type in `source/types.ts`, use it in `source/index.ts`, and expose it from the package's public type exports.
test command (not shown to the agent)
node --experimental-transform-types --test .orivoxx/acceptance.test.mjsValidation gates
pollingWaiting for the validation worker. This page polls every 3 seconds.
Six gates
- cloned
- pass
- installs
- pass
- testFailsAtBase
- pass
- deterministic
- pass
- timeBounded
- pass
- licenseOk
- pass