ModernDash

A Typescript-First utility library inspired by Lodash. Optimized for modern browsers.
GitHub
320
Created 2 years ago, last commit 5 months ago
6 contributors
1.03k commits
Stars added on GitHub, month by month
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
Stars added on GitHub, per day, on average
Yesterday
=
Last week
+0.3
/day
Last month
+0.2
/day
Last 12 months
+0.4
/day
npmPackage on NPM
Monthly downloads on NPM
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
README

ModernDash Logo

A Typescript-First utility library inspired by Lodash. Optimized for modern browsers & developer experience.

✅ ESM ✅ Fast & Lightweight ✅ Tree-shakable ✅ Typescript Strict Mode (no any)
✅ 100% Test Coverage ✅ Zero runtime dependencies ✅ Hoverable Docs


Intro Code

💾 Installation

npm install moderndash

📋 Requirements

NodeJS: >=18.x | Typescript: >=5.0

NodeJS 16-18: Enable the experimental-global-webcrypto flag to use crypto functions.
Works out of the box with NodeJS 19+

🚀 Performance

ModernDash aims to outperform Lodash and deliver lightning-fast utility functions. Performance is not an afterthought, but a top priority. You can expect ModernDash to exceed or at least match the performance of Lodash in most benchmarks, ensuring that your project stays speedy and efficient.

[ Benchmark Results ]

🗃 FAQ

Why is X lodash function not included?

ModernDash does not include any lodash functions that can be easily replaced by native javascript. It only includes the functions that you really need, and keeps the library as slim as possible. Please refer to You-Dont-Need-Lodash or youmightnotneed.com/lodash for native replacements.
If you still believe a function is missing, please open an issue.

Why no pipe utility functions?

The upcoming pipe operator in JavaScript will provide function composition, so the framework focuses on providing other useful utility functions that are not yet available.

The pipe operator can already be included via babel.

💌 Love & Thanks

To type-fest for providing some valuable types.

🧰 Contribute

  • Star the repo if you like it

  • Check the contributing section!