Promisified Node.js Standard Library
JSON →pn is a JavaScript library that provides Promise-returning wrappers for the Node.js standard library functions that traditionally use callbacks. Released in its current form (v1.1.0) in 2016, it aimed to bridge the gap before native `async/await` and `util.promisify` were standard in Node.js. It operates by returning a Promise only if no callback is supplied, allowing existing callback-based code to function without modification. The library handles various 'odd cases' in Node.js APIs, such as functions that return multiple values via callback or those that return an object while also taking a callback. Its release cadence is effectively inactive, with the last update in 2016. While functional, modern Node.js environments (v8+ for `util.promisify`, v7.6+ for `async/await`) have native alternatives that are generally preferred.
Traffic · last 30 days ↓25% vs prev 7d
top countries 🇺🇸 United States · 🇳🇴 Norway · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany