npm

Need private packages and team management tools?Check out npm Orgs. »

stb-referrer

1.4.1 • Public • Published

Determine application referrer

build status npm version dependencies status devDependencies status Gitter

Module to make a correct exit from the current application. It can use document.referrer or URL GET parameter referrer to extract a link to the previous application.

Installation

npm install stb-referrer

Usage

Add to the scope:

var referrer = require('stb-referrer');

Go back to the previous application:

location.href = referrer() || 'http://google.com/';

Development mode

There is a global var DEVELOP which activates additional consistency checks and protection logic not available in release mode.

Contribution

If you have any problems or suggestions please open an issue according to the contribution rules.

License

stb-referrer is released under the MIT License.

install

npm i stb-referrer

Downloadsweekly downloads

3

version

1.4.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability