Package Exports
- rescript-email-validator
- rescript-email-validator/src/EmailValidator.res.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rescript-email-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rescript-email-validator
ReScript version for email-validator.
Install
yarn add rescript-email-validator
or
npm install rescript-email-validator
Add rescript-email-validator
to bs-dependencies
"bs-dependencies": [
...
"rescript-email-validator"
],
Example
You can find usage examples in the test folder
EmailValidator.validate(Some("test@email.com")) // true
Documentation
😐