Newline Proliferating Maniac

    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);
    });

    Keywords

    none

    Install

    npm i dereferrer

    DownloadsWeekly Downloads

    0

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • ahwayakchih