Installation
dldr is available on both npm and JSR, making it easy to install in any JavaScript or TypeScript project.Package Managers
- npm
- pnpm
- yarn
- bun
- JSR
Install dldr from npm:
The npm package is published as
dldrImporting
After installation, you can import dldr in your project:Module Exports
dldr provides two main entry points:dldr
Main ModuleThe core batching functionality without caching.
dldr/cache
Cache ModuleBatching with built-in caching support.
TypeScript Support
dldr is written in TypeScript and includes complete type definitions out of the box. No additional@types packages are needed.
Runtime Requirements
dldr requires
queueMicrotask support, which is available in all modern JavaScript environments including Node.js 11+, Deno, Bun, and all modern browsers.Dependency
dldr has a single dependency:object-identity- Used for creating identity keys from complex objects
Next Steps
Quick Start
Now that you’ve installed dldr, let’s build your first loader