Skip to content

replace ms with ms-tiny#299

Closed
ofershap wants to merge 1 commit intopillarjs:masterfrom
ofershap:replace-ms-with-ms-tiny
Closed

replace ms with ms-tiny#299
ofershap wants to merge 1 commit intopillarjs:masterfrom
ofershap:replace-ms-with-ms-tiny

Conversation

@ofershap
Copy link

@ofershap ofershap commented Feb 26, 2026

ms has no subdependencies but also no TypeScript types, no ESM exports, and returns undefined on bad input.

ms-tiny is a drop-in replacement with the same API. Ships ESM + CJS with built-in types. 833 bytes gzipped, zero deps.

All 139 tests pass without changes.

ms-tiny is API-compatible with ms and ships both ESM and CJS
exports with built-in TypeScript types. 833 bytes gzipped, zero
dependencies.

Made-with: Cursor
Copy link
Member

@UlisesGascon UlisesGascon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ofershap! Thanks so much for reaching out and for the effort you've put into building an alternative to ms. It's always exciting to see new libraries in the ecosystem! 🙌

We've had a long-standing relationship with the ms team and have relied on them for many years, so we're not actively looking to move away from that dependency at this point.

That said, our hesitation with adopting newer libraries is mostly around supply chain risk. Since your package was published just a few days ago and is still building up its community, it feels a bit early for us to take that step. It's nothing against the quality of your work!

Honestly, one of the biggest ways you could make an impact for us (and many others) would be contributing your improvements, like ESM + CJS support with built-in types, back to the original ms project. That way, we'd naturally benefit from your work without needing to change our dependencies. Have you considered opening a PR or discussion there? We'd love to see those improvements land upstream!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants