unpromisefy
v1.0.2
Published
A Node.js addon to convert a resolved Promise into a non-Promise value. It provide a way to access the value inside a Promise without using then or await. However, it's important to note that this module should only be used as a last resort, after explori
Downloads
14
Readme
unpromisefy.js
A Node.js addon to convert a resolved Promise into a non-Promise value.
How to use ?
const unpromisefy = require('unpromisefy');
let promise=Promise.resolve(123);
console.log(promise)
console.log(unpromisefy.unpromisefy(promise));