{"library":"zalgo-promise","type":"library","category":null,"description":"The `zalgo-promise` library (current stable version 1.0.48) is a specialized JavaScript promise implementation designed to deviate from the standard asynchronous-by-default behavior of native `Promise` objects. It resolves synchronously unless an explicit asynchronous operation (e.g., `setTimeout`, network request) is introduced within the promise chain. This unique characteristic makes it particularly useful for mitigating specific performance bottlenecks in browser environments, such as issues with `setTimeout` deprioritization in unfocused popup windows, or when polyfilling Promises in older browsers where shims might rely on inefficient asynchronous mechanisms. `zalgo-promise` provides a more direct control over execution flow compared to standard promises, making it a niche but valuable tool for developers facing these particular challenges. While it doesn't have a rapid release cadence, it is actively maintained for its specific use case.","language":"javascript","status":"active","version":"1.0.48","tags":["javascript","template"],"last_verified":"Wed May 27","install":[{"cmd":"npm install zalgo-promise","imports":["import { ZalgoPromise } from 'zalgo-promise';","const ZalgoPromise = require('zalgo-promise');","<script src=\"zalgo-promise.js\"></script>\n<script>\n    new ZalgoPromise( ... );\n</script>"]},{"cmd":"yarn add zalgo-promise","imports":[]},{"cmd":"pnpm add zalgo-promise","imports":[]}],"homepage":null,"github":"https://github.com/krakenjs/zalgo-promise","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/zalgo-promise","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/zalgo-promise/compatibility"}}