Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sender-rewriting-scheme

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

128

Version

1.0.0

License

GPL-3.0

Unpacked Size

44.7 kB

Total Files

6

Last publish

Collaborators

  • avatar