Socket
Book a DemoInstallSign in
Socket

github.com/cdepillabout/purescript-email-validate

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/cdepillabout/purescript-email-validate

v7.0.0+incompatible
Source
Go
Version published
Created
Source

purescript-email-validate

Build
Status

A small library providing an EmailAddress type. Based on the Haskell library email-validate.

Installing

$ npm install
$ ./node_modules/.bin/bower install purescript-email-validate

Building / Testing

$ pulp build
$ pulp test

Usage

> import Text.Email.Validate (EmailAddress(), toString, emailAddress)
> :t emailAddress
String -> Either String EmailAddress
> emailAddress "test@email.com"
Right test@email.com
> emailAddress "bad@email@address"
Left "bad email address"
> :t toString
EmailAddress -> String
> toString $ emailAddress "test@email.com"
test@email.com

FAQs

Package last updated on 12 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.