{"library":"deferential","type":"library","category":null,"description":"deferential is a lightweight JavaScript utility designed to assist in building APIs that support both Node.js-style callbacks and native ES6 Promises. It provides a `Deferred` object, which acts as an intermediate for managing the resolution or rejection of a promise, and a `nodeify` method to conditionally return a promise or invoke a callback. The package is at version 1.0.0, indicating a stable but likely infrequent release cadence given its focused scope and the maturity of native Promise implementations. Its key differentiator lies in offering a minimalistic approach to deferred patterns, avoiding the heavier overhead of full-fledged promise libraries like Q or Bluebird by leveraging native browser/Node.js ES6 Promises. It's particularly useful for adapting existing callback-based code to also expose a promise-based interface without rewriting the core logic.","language":"javascript","status":"maintenance","version":"1.0.0","tags":["javascript","promise","promises","defer","deferred","callback","nodeback","cb"],"last_verified":"Wed May 27","install":[{"cmd":"npm install deferential","imports":["const Deferred = require('deferential');","const d = Deferred();","fs.readFile(fileName, 'utf8', d.resolver());"]},{"cmd":"yarn add deferential","imports":[]},{"cmd":"pnpm add deferential","imports":[]}],"homepage":null,"github":"https://github.com/eugeneware/deferential","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/deferential","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/deferential/compatibility"}}