just
repository·master·Indexed 27 days ago
https://github.com/angus-c/justA library of zero-dependency, single-purpose JavaScript utility modules designed to be lightweight and efficient alternatives to bulky utility libraries. Version 1.22.4 includes a suite of utilities such as just-cartesian-product, just-compact, just-flatten-it, just-group-by, just-index, just-insert, just-intersect, just-last, just-mean, just-median, just-mode, just-order-by, just-partition, just-percentile, just-permutations, just-random, and just-range.
What's inside just
- Just is a collection of zero-dependency npm modules designed to perform single, specific tasks. It is a lightweight alternative to larger utility libraries, making it suitable for performance-sensitive environments like PWAs where minimizing bundle size is critical.
Install just-standard-deviation
masterYou can install the
just-standard-deviationmodule using npm or yarn.npm install just-standard-deviationyarn add just-standard-deviationInstall just-squash
masterYou can install
just-squashusing npm or yarn. This utility is part of thejustlibrary of zero-dependency npm modules designed to perform single, specific tasks.npm install just-squashyarn add just-squashInstall just-range
masterYou can install
just-rangeusing npm or yarn to generate range arrays for numbers.npm install just-rangeyarn add just-rangeInstall just-merge
masterYou can install
just-mergeusing npm or yarn to perform shallow object assignments.npm install just-mergeyarn add just-mergeChoose between Just and Lodash
masterDeciding whether to use Just or Lodash depends on your project's priorities:
Use Lodash if:
- You need to cover specific edge cases (Lodash is highly robust with edge cases).
- You are processing very large datasets (100,000+ records) where runtime performance gains outweigh the extra JavaScript payload.
- You require specific methods that Just does not provide.
- You need advanced features like argument coercion,
_placeholders incurry, or specific behaviors indebounce/throttle(e.g., cancellation orflushedmethods).
Use Just if:
- You care about minimizing your JavaScript footprint (especially critical for mobile web development and users on 2G/3G connections).
- You want lightweight, dependency-free, and hand-written utilities that are typically well under 1kB minified/gzipped.
Install just-clamp
masterYou can install
just-clampusing npm or yarn. It is a zero-dependency utility used to restrict a number within a specified range.npm install just-clampyarn add just-clampInstall just-kebab-case
masterYou can install
just-kebab-caseusing npm or yarn to add kebab-case string conversion to your project.npm install just-kebab-caseyarn add just-kebab-caseTypeScript support for Just utilities
masterEvery Just utility includes TypeScript definitions and tests, allowing for type-safe usage in TypeScript projects.Install just-reduce-object
masterYou can install
just-reduce-objectusing npm or yarn to add object reduction capabilities to your project.npm install just-reduce-objectyarn add just-reduce-objectInstall just-pluck-it
masterYou can install
just-pluck-itusing npm or yarn. This module is part of thejustlibrary of zero-dependency utilities designed to perform a single specific task.npm install just-pluck-ityarn add just-pluck-itInstall just-demethodize
masterYou can install
just-demethodizeusing npm or yarn. This utility is part of thejustlibrary of zero-dependency modules.npm install just-demethodizeyarn add just-demethodize