maxmin is a tiny, dependency-free JavaScript library for finding the maximum and minimum values within an array of numbers. Simple and efficient, it avoids unnecessary complexity, offering a straightforward solution for comparing numerical values. Ideal for scenarios where minimizing bundle size and execution speed are paramount, such as front-end applications or resource-constrained environments. It exports two functions, max and min, each accepting an array and returning a single numerical value representing the respective maximum or minimum within that array.
The npm package maxmin has had sporadic releases since its initial release in February 2014. There were several releases in 2014 and 2015, followed by a long period of inactivity until July 2020. Single releases occurred in May 2021 and June 2024. There have been no releases in 2025 as of September 7th.
Maxmin's npm package downloads show a generally stable trend throughout 2024 and early 2025, hovering around 2 million. A notable surge occurred in June 2025, followed by a slight decrease. September 2025 downloads are significantly lower, but the month is not yet complete.