This package has been deprecated

Author message:

this is just a silly project i made to learn some c++ apis, please don't use it in any serious projects

@snek/syncify

0.0.6 • Public • Published

syncify

(this is not something you should use in prod)

const syncify = require('@snek/syncify');

const p0 = new Promise((r) => {
  setTimeout(() => r('works'), 1000);
});

// blocks for 1000ms
console.log(syncify(p0)); // 'works!'

const p1 = Promise.reject(new Error('aaaa'));

syncify(p1); // Error: 'aaaa'

Readme

Keywords

none

Package Sidebar

Install

npm i @snek/syncify

Weekly Downloads

2

Version

0.0.6

License

MIT

Last publish

Collaborators

  • snek