# unshift

> Real-time, with no strings attached

Latest version **0.0.0** (published 2014-10-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install unshift
pnpm add unshift
yarn add unshift
bun add unshift
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2014-10-13 |
| First published | 2014-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arnout Kazemier |
| Maintainers | V1 |
| Keywords | unshift |

## Links

- npm: https://www.npmjs.com/package/unshift
- npm.io page: https://npm.io/package/unshift

## Recent versions

- 0.0.0 (latest) — 2014-10-13

## README

```js
'use strict';

var unshift = require('unshift');

unshift
  .transport('jsonp', unshift.jsonp)
  .transport('flash', unshift.flash)
  .transport('xhr', unshift.xhr)
  .transport('event-source', unshift.eventsource)
  .transport('custom', require('custom-transport'))
  .transport('websocket', unshift.websocket);

unshift.transform('incoming', function incoming(msg, next) {
  setTimeout(function timeout() {
    msg.data = 'foo';
    next(undefined, false);
  });
});

unshift.transform('incoming', 'event', function incoming(msg) {
  delete msg.data;
  return false;
});

unshift.on('event', function event(msg) {
  console.log(msg);
});

unshift.listen(8080);
```

If this excites you, and you want to contribute. You know where to find me.

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