Typed stable sorting helpers for JavaScript and TypeScript, version 0.1.0, with zero dependencies. Provides explicit stable sort functions (non-mutating and in-place) with migration-friendly aliases for the deprecated 'stable' package. Ships TypeScript types, requires Node >=18. Differentiator: offers a typed, migration-focused API with helpers like compareBy and reverseComparator, as an independent alternative to the unmaintained 'stable'.
npm install stable-sortNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows typed stable sort with compareBy using a property selector, maintaining stable order for equal ages.
Upgrade Node.js to version 18 or later.
Replace imports from 'stable' with 'stable-sort' using the migration aliases.
Use import syntax or switch to dynamic import() if using CommonJS.
Use import syntax: import { stableSort } from 'stable-sort'; or use dynamic import: await import('stable-sort').Use named imports: import { stableSort, compareBy } from 'stable-sort'.Ensure you import stableSort correctly: import { stableSort } from 'stable-sort' (ESM) or const { stableSort } = await import('stable-sort') (dynamic).No dependency data recorded yet.