Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

brandonhorst/elliptical-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lacona-phrase-email

Build Status

Lacona Phrases for matching an email-related information

Installation

npm install lacona-phrase-email

Usage

/** @jsx createElement */
import { createElement, Phrase } from 'lacona-phrase'
import { EmailAddress } from 'lacona-phrase-email'
import { Parser } from 'lacona'

const parser = new Parser({
  grammar: (
    <sequence>
      <literal text='email ' />
      <EmailAddress />
    </sequence>
  )
})

parser.parseArray('email app@lacona.io')
/* [{
  words: [
    {text: 'email ', input: true},
    {text: 'app@lacona.io', input: true, argument='email'}
}] */

Reference

EmailAddress

Matches standard user@domain.tld email addresses.

Result

String - the email address

Props

  • argument: String - the text for the label

About

Lacona Phrase for matching an email address

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published