Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

async-invoker

Package Overview
Dependencies
3
Maintainers
2
Versions
6
Issues
File Explorer

Advanced tools

async-invoker

Create a runner of code asynchronous

    1.1.3latest

Version published
Maintainers
2
Yearly downloads
9,158
increased by68.35%

Weekly downloads

Readme

Source

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

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc