1.1.3 • Published 3 years ago

async-invoker v1.1.3

Weekly downloads
321
License
MIT
Repository
github
Last release
3 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

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.0

8 years ago

0.0.1

8 years ago