Introducing @harshil3134/utils: Type-Safe, Zero-Dependency Utility Library

Excited to share my newly published NPM package: `@harshil3134/utils`! 🚀 I've always found myself rewriting the same helper functions across different projects—whether it's handling deep object merges, formatting dates, handling async retries, or managing local storage safely in Next.js. So, I decided to build a comprehensive, production-grade utility library to solve this once and for all. Why `@harshil3134/utils`? ✅ 100% Type-Safe: Written in strict TypeScript. ✅ Tree-shakeable: Import only what you need (e.g., `import { retry } from '@harshil3134/utils/async'`). ✅ Zero Dependencies: Keeps your bundle size incredibly small. ✅ Environment Aware: Built-in safeguards for SSR (Next.js/Remix), Browser, and React Native. ✅ Battle-Tested: Backed by 60+ unit tests. It includes 20 different modules handling everything from strings and collections, to advanced observability tracers and React hooks. If you give it a try and encounter a bug or unexpected behavior, please don't hesitate to reach out — connect with me here on LinkedIn or open an issue on GitHub. Your real-world feedback is invaluable at this stage and I'm committed to responding quickly. Check it out on NPM and GitHub, and let me know what you think! Contributions are always welcome. 👇 🔗 NPM: https://lnkd.in/gYAWGaWm 🔗 GitHub: https://lnkd.in/g_4XTbWk #javascript #typescript #webdevelopment #reactjs #nodejs #opensource #npm #softwareengineering

To view or add a comment, sign in

Explore content categories