# ordine

> Callbacks made almost easy.

Latest version **1.1.0** (published 2014-11-03) · Beerware license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2014-11-03 |
| First published | 2014-09-03 |
| Weekly downloads | 0 |
| License | Beerware |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Guilherme |
| Maintainers | guisouza |
| Keywords | callbacks, queue, proccess, promisses |

## Links

- npm: https://www.npmjs.com/package/ordine
- Repository: https://github.com/guisouza/Ordine
- Issues: https://github.com/guisouza/Ordine/issues
- npm.io page: https://npm.io/package/ordine

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2014-11-03
- 1.0.1 — 2014-10-24
- 1.0.0 — 2014-10-24
- 0.0.9 — 2014-09-10
- 0.0.8 — 2014-09-04
- 0.0.7 — 2014-09-03
- 0.0.6 — 2014-09-03
- 0.0.5 — 2014-09-03
- 0.0.4 — 2014-09-03
- 0.0.3 — 2014-09-03
- 0.0.2 — 2014-09-03
- 0.0.1 — 2014-09-03

## README

![alt text](http://i.imgur.com/2grQz3L.png "Ordine")

Callbacks made almost easy
======
Simple queue system to handle callbacks


Constructor :
======

```javascript
    var myQueue = new Ordine(function(){
      console.log('uh!?')
    })
```


# Constructor arguments :
  __callback(function):__
This the only required argument which is the callback for the queue.


#Enqueue method :

```javascript

    var myQueue = new Ordine(function(){
      console.log('uh!?')
    })
    .enqueue(function(){

      window.setTimeout(function(){
        console.log('first')
        myQueue.next()
      },1000);
    })

    .enqueue(function(){
      window.setTimeout(function(){
        console.log('second')
        myQueue.next()
      },1000);
    },false)

    .enqueue(function(){
      window.setTimeout(function(){
        console.log('third')
        myQueue.next()
      },1000);
    },true)
    .run()

```

# Enqueue arguments :

  __Proccess(function):__

Asynchronous stuff.

  __Sync(boolean):__

This argument have to be the answer for the question : "This process will wait the previous process end to be executed"


# Run Method :

The run method trigger the queue execution.


// Cycle Icon designed by Nick Remis - http://www.thenounproject.com/nremis/

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