Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@snek/syncify

devsnek18MITdeprecated0.0.6

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

a small and fast syncification library

readme

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'