Package Exports
- sender-rewriting-scheme
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sender-rewriting-scheme) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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