# stb-referrer

> Determine application referrer.

Latest version **1.4.1** (published 2018-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install stb-referrer
pnpm add stb-referrer
yarn add stb-referrer
bun add stb-referrer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2018-08-14 |
| First published | 2015-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stanislav Kalashnik |
| Maintainers | stbsdk |
| Keywords | stb, sdk, stbsdk, framework, referrer |

## Links

- npm: https://www.npmjs.com/package/stb-referrer
- Repository: https://github.com/stbsdk/referrer
- Homepage: https://github.com/stbsdk/referrer#readme
- Issues: https://github.com/stbsdk/referrer/issues
- npm.io page: https://npm.io/package/stb-referrer

## Dependencies (1)

- [cjs-query](https://npm.io/package/cjs-query.md) ^1.5.1

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.4.1 (latest) — 2018-08-14
- 1.4.0 — 2016-10-28
- 1.3.0 — 2015-12-28

## README

Determine application referrer
==============================

[![build status](https://img.shields.io/travis/stbsdk/referrer.svg?style=flat-square)](https://travis-ci.org/stbsdk/referrer)
[![npm version](https://img.shields.io/npm/v/stb-referrer.svg?style=flat-square)](https://www.npmjs.com/package/stb-referrer)
[![dependencies status](https://img.shields.io/david/stbsdk/referrer.svg?style=flat-square)](https://david-dm.org/stbsdk/referrer)
[![devDependencies status](https://img.shields.io/david/dev/stbsdk/referrer.svg?style=flat-square)](https://david-dm.org/stbsdk/referrer?type=dev)
[![Gitter](https://img.shields.io/badge/gitter-join%20chat-blue.svg?style=flat-square)](https://gitter.im/DarkPark/stbsdk)


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 ##

```bash
npm install stb-referrer
```


## Usage ##

Add to the scope:

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

Go back to the previous application:

```js
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](https://github.com/stbsdk/referrer/issues)
according to the contribution [rules](.github/contributing.md).


## License ##

`stb-referrer` is released under the [MIT License](license.md).

---
_Source: https://npm.io/package/stb-referrer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
