Nutritious Pumpkin Mash

    sender-rewriting-scheme
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    Sender Rewriting Scheme for Node.

    Written for and maintained by Ptorx, a proxy email service.

    import { SRS } from 'sender-rewriting-scheme';
     
    const srs = new SRS({
      separator: '=', // default
      secret: 'test1', // required
      maxAge: 30 // default
    });
     
    srs.forward('user@example.com', 'forward.com');
    // SRS0=5884=RN=example.com=user@forward.com
     
    srs.reverse('SRS0=5884=RN=example.com=user@forward.com');
    // user@example.com

    Install

    npm i sender-rewriting-scheme

    DownloadsWeekly Downloads

    5

    Version

    1.0.0

    License

    GPL-3.0

    Unpacked Size

    44.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • xyfir