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'
Versions
Current Tags
- VersionDownloads (Last 7 Days)
Version History
- VersionDownloads (Last 7 Days)
Package Sidebar
Install
Weekly Downloads