timerify
v0.1.1
Published
Zero-config function timing utility (sync & async).
Downloads
9
Maintainers
Readme
⏱️ timerify
A simple, zero-config wrapper for measuring the runtime of synchronous and asynchronous functions.
Installation
Install timerify via npm:
npm install timerifyUsage
JavaScript/TypeScript
Wrap a function to measure its runtime:
import { timerify } from 'timerify';
const slow = timerify(async () => await fetch(url), 'fetch');
await slow();CLI
Measure the runtime of a function via the command line:
npx timerify src/job.ts runJobFeatures
- Zero-Config: No setup required; just wrap your function and measure.
- Sync/Async Support: Works with both synchronous and asynchronous functions.
- CLI Integration: Run measurements directly from the command line.
License
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Support
If you encounter issues or have questions, file an issue on the GitHub repository.
