{"library":"pn","type":"library","category":null,"description":"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.","language":"javascript","status":"abandoned","version":"1.1.0","tags":["javascript","promise","node"],"install":[{"cmd":"npm install pn","imports":["import fs from 'pn/fs';","import child_process from 'pn/child_process';","require('pn/_promise')(MyPromise);"]},{"cmd":"yarn add pn","imports":[]},{"cmd":"pnpm add pn","imports":[]}],"homepage":null,"github":"https://github.com/cscott/node-pn","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/pn","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/pn/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}