# flatstack

> flatstack.js ============

Latest version **0.0.10** (published 2013-12-09) · BSD license · 0 weekly downloads

## Install

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

## 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.10 |
| Published | 2013-12-09 |
| First published | 2013-05-29 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | architectd |

## Links

- npm: https://www.npmjs.com/package/flatstack
- Repository: https://github.com/classdojo/flatstack.js
- Issues: https://github.com/classdojo/flatstack.js/issues
- npm.io page: https://npm.io/package/flatstack

## Recent versions

- 0.0.10 (latest) — 2013-12-09
- 0.0.9 — 2013-12-08
- 0.0.8 — 2013-12-07
- 0.0.7 — 2013-10-18
- 0.0.1 — 2013-10-18
- 0.0.6 — 2013-06-18
- 0.0.5 — 2013-06-18
- 0.0.4 — 2013-06-18
- 0.0.3 — 2013-05-29
- 0.0.2 — 2013-05-29

## README

[![Alt ci](https://travis-ci.org/classdojo/flatstack.js.png)](https://travis-ci.org/classdojo/flatstack.js)



```javascript
var flatstach = require("flatstack");
var queue = flatstack();


queue.push(function() {
  setTimeout(queue.pause().resume, 0);
});

//if argument[0] is present, then it's async
queue.push(function(next) {
   setTimeout(next, 0);
});

//called immediately
queue.push(function() {
  
  //but look, you can inject functions before the next one is called!
  queue.unshift(function() {
    queue.pause.resume(); //calls async timeout
  });
});
```

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