{"library":"thunky","type":"library","category":null,"description":"Delay the evaluation of a paramless async function and cache the result. Version 1.1.0 is stable with no active development. It provides a simple thunk pattern for lazy initialization, caching the result after the first successful invocation. Supports both callback and Promise (via `thunky/promise`) styles. Lightweight with zero dependencies. Differentiators: minimal API, error handling that prevents caching on failure, and compatibility with Node.js and browsers via bundlers.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","memo","thunk","async","lazy","control","flow","cache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install thunky","imports":["import thunky from 'thunky'","import thunkyp from 'thunky/promise'","const thunky = require('thunky')"]},{"cmd":"yarn add thunky","imports":[]},{"cmd":"pnpm add thunky","imports":[]}],"homepage":"https://github.com/mafintosh/thunky#readme","github":"git://github.com/mafintosh/thunky","docs":null,"changelog":null,"pypi":null,"npm":"thunky","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}