1.1.3 • Published 4 years ago

async-invoker v1.1.3

Weekly downloads
321
License
MIT
Repository
github
Last release
4 years ago

Async invoker

NPM version

Create a promise with result of the invoke your code.

Sync function - example

    AsyncInvoker = require "async-invoker"
    code = " function (a, b) { return a + b; } "
    
    new AsyncInvoker(code)
    .invoke (1, 2)
    .tap console.log  # 3

Async function - example

    AsyncInvoker = require "async-invoker"
    code = " function (callback) { callback(1 + 2); } "
    
    new AsyncInvoker(code)
    .invoke()
    .tap console.log  # 3
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.0

9 years ago

0.0.1

9 years ago