An open API service indexing awesome lists of open source software.

https://github.com/weisrc/idefer

Defers all instance methods.
https://github.com/weisrc/idefer

Last synced: about 1 month ago
JSON representation

Defers all instance methods.

Awesome Lists containing this project

README

        

# idefer

Defers all instance methods.

## Installation

### Browser

```html
<script/>
```

### Node.js

```sh
npm i idefer
```

```js
const idefer = require("idefer");
```

### Copy paste

Just copy paste the code!

## Usage

```js
let io = new IO();
io.defer = idefer(io);
// all io methods will be added to the defer property.

io.defer.close();
// close function is now queued.
// Works with parameters!

io.write("Hello");
// do whatever you want here.

// executes all the deferred queued functions.
io.defer();
```