# tiktok

> to running thing base on tik and tok

Latest version **0.0.7** (published 2017-12-02) · MIT license · 0 weekly downloads

## Install

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

## 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.7 |
| Published | 2017-12-02 |
| First published | 2017-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bichi |
| Maintainers | bichi |
| Keywords | promise, worker |

## Links

- npm: https://www.npmjs.com/package/tiktok
- Repository: https://github.com/bichikim/tic-tok
- Homepage: https://github.com/bichikim/tic-tok#readme
- Issues: https://github.com/bichikim/tic-tok/issues
- npm.io page: https://npm.io/package/tiktok

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^3.1.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [moment](https://npm.io/package/moment.md) ^2.19.2

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

- 0.0.7 (latest) — 2017-12-02
- 0.0.6 — 2017-12-02
- 0.0.5 — 2017-12-02
- 0.0.4 — 2017-12-02
- 0.0.3 — 2017-12-02
- 0.0.2 — 2017-12-02
- 0.0.1 — 2017-12-02

## README

![intro](./img/intro.png)

![typescript][typescript]

[typescript]:https://img.shields.io/badge/typescript-2.6.*-blue.svg


# [Tic - tok](https://www.youtube.com/watch?v=iP6XpLQM2Cs)

> Tic Tok, on the clock

> But the processor dosen't stop no

> Woah-oh oh oh~ Woah-oh oh oh~

## Install
``
npm install --save tiktok
``

## How to use
````javascript
/**
 *
 * @author Bichi Kim [bichi@pjfactory.com]
 * @copyright (c) PJ Factory Co.
 * @license Private
 */
require('babel-polyfill')
const {Run, Loop, Step} = require('../dist/app.js')
const runners = [
  (a) => {
    return new Promise((resolve, reject) => {
      resolve(a)
    })
  },
  (a) => {
    return new Promise((resolve, reject) => {
      resolve(a)
    })
  },
  (a) => {
    return new Promise((resolve, reject) => {
      resolve(a)
    })
  },
]
const runners2 = [
  (a) => {
    return new Promise((resolve, reject) => {
      resolve(`next ${a}`)
    })
  },
  (a) => {
    return new Promise((resolve, reject) => {
      resolve(`next ${a}`)
    })
  },
  (a) => {
    return new Promise((resolve, reject) => {
      resolve(`next ${a}`)
    })
  },
]
const run = new Run(runners, 'foo')
run.start()
run.then((a) => {
  console.log(a)
}).catch((error) => {
  console.log('--', error)
})

const loop = new Loop(runners, 'bar')
loop.delay(500)

loop.then((a) => {
  console.log(a)
}).catch((error) => {
  console.log('----', error)
})

loop.stopAfter(7, () => {
  console.log('stoped')
})
loop.start()
const step = new Step(runners, 'con')
step.then((a) => {
  console.log(a)
}).catch((error) => {
  console.log(error)
})
step.start()

setTimeout(() => {
  step.addAll(runners2, 'com')
}, 5000)

setTimeout(() => {
  step.addAll(runners2, 'cyn')
}, 3000)

setTimeout(() => {
  step.addAll(runners2, 'can')
}, 2000)

````

## Documents
``
``

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