@eliranmal/proxify

0.1.1 • Public • Published

proxify

callbacks to asyncs, all over the place

NPM

overview

asyncify all functions on an object with node-style functions.

usage

const obj = {
  foo: (bar, done) => done(null, 'wat'),
};

const asyncObj = proxify(obj);

const result = await asyncObj.foo(1);

Readme

Keywords

Package Sidebar

Install

npm i @eliranmal/proxify

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

2.36 kB

Total Files

3

Last publish

Collaborators

  • eliranmal