dashlow
v0.1.0
Published
My little lo(w)dash, and much more.
Readme
dashlow
My own lodash, and much more.
Carefully curated from awesome sources:
just: Minimal, focused utilities with no dependencies.you-dont-need-lodash-underscore: Community-driven modern JavaScript best practices.deepmerge: Simple and predictable deep merge.- Real-world use cases from daily development.
Features
- 🧠 Opinionated: We only include what we personally reach for often. No bloat. No over-engineering. Just simple, direct utilities.
- 🧰 JavaScript and TypeScript: ESM-first with IIFE bundle for direct browser use — fully typed, tree-shakable, and (most items areØ) compatible with both Node.js and browser environments.
Installation
npm install dashlow
# or
yarn add dashlowUsage
import { compact, groupBy, clamp } from "dashlow";
compact([0, null, "", 1]); // [1]
groupBy(["one", "two", "three"], x => x.length); // {3: ['one', 'two'], 5: ['three']}
clamp(25, 10, 20); // 20Why?
I just can't say it better than those awesome folks at just and you-dont-need-lodash.
dashlow is my opinionated take: small, practical utilities I actually reach for every day. No frills, no polyfills. Just the stuff that matters — in both JS and TypeScript, for Node and browsers.
Caveats
See tradeoffs from just. Quick notes:
- Not a full Lodash replacement — by design. Extend as needed.
- Handles edge cases pragmatically, not exhaustively.
- No chaining. No deep magic. Just simple functions.
- Some APIs are inspired by Lodash, but not 1:1.
Browser Support
- Works in all modern browsers — IE not supported.
- For specifics, refer to the underlying libraries' documentation.
Contributing
This is an opinionated collection and not open for contributions.
You’re encouraged to use the original sources incrementally — install or copy only what you need. When the time comes, feel free to fork and publish your own tailored version.
License
MIT © 2025 bonniss
