# replaying

> Create an object and replay it's methods

Latest version **0.1.3** (published 2012-09-26) · 0 weekly downloads

## Install

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

## 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.1.3 |
| Published | 2012-09-26 |
| First published | 2012-09-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/replaying
- Repository: https://github.com/Raynos/replaying
- Issues: https://github.com/Raynos/replaying/issues
- npm.io page: https://npm.io/package/replaying

## Recent versions

- 0.1.3 (latest) — 2012-09-26
- 0.1.2 — 2012-09-26
- 0.1.1 — 2012-09-26
- 0.1.0 — 2012-09-26

## README

# replaying [![Build Status][1]][2]

Create an object and replay it's methods

## Example

Return synchronous interfaces for asynchronously retrieved asynchronous APIs

``` js
var Replay = require("../index")

var thing = doThing()

thing.store("boom").collect(function (err, values) {
    console.log("values", values)
})

function doThing() {
    return Replay(["store", "collect"], getRealThing)
}

function getRealThing(cb) {
    setTimeout(function () {
        cb(null, {
            store: store
            , collect: collect
            , values: []
        })
    }, 1000)

    function store(v) {
        this.values.push(v)
    }

    function collect(cb) {
        cb(null, this.values)
    }
}
```

## Installation

`npm install replaying`

## Contributors

 - Raynos

## MIT Licenced

  [1]: https://secure.travis-ci.org/Raynos/replaying.png
  [2]: http://travis-ci.org/Raynos/replaying

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