Nitrogen Pumpkin Mulch

    llibemailaddress
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    Luke Email-Address Library

    Simple E-Mail address class / parser, which I can share across projects.

    Usage

    import { EmailAddress } from 'llibemailaddress';
    
    const address1 = new EmailAddress(
      'luke.rieff', /* Username */
      'gmail.com', /* Hostname */
      'Luke Rieff' /* Name */
    );
    const address2 = EmailAddress.fromAddress('luke.rief@gmail.com', 'Luke Rieff');
    const address3 = EmailAddress.decode('"Luke Rieff" <luke.rieff@gmail.com>');
    
    console.log(address1.encode());
    /* Luke Rieff <luke.rieff@gmail.com> */
    console.log(address2.address)
    /* luke.rieff@gmail.com */

    Keywords

    none

    Install

    npm i llibemailaddress

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    8.54 kB

    Total Files

    6

    Last publish

    Collaborators

    • skywa04885