dereferrer

1.0.2 • Public • Published

dereferrer

This module is just a tiny helper that loads HTML from referrer URL found in request.

Installation

npm install dereferrer

or:

npm install https://github.com/ahwayakchih/dereferrer

Usage

With Express/Connect:

app.use(require('dereferrer').createExpress());
 
app.use(function (req, res, next) {
    console.log('Dereferred:', req.referrerURL, req.referrerHTML);
});

Standalone:

const dereferrer = require('dereferrer').getReferrerHTML;
 
dereferrer(req, function (err, referrerHTML, referrerURL) {
    console.log('Dereferred:', referrerHTML, referrerURL);
});

Readme

Keywords

none

Package Sidebar

Install

npm i dereferrer

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • ahwayakchih