Most apps speak machine. Great apps speak human.
I just released humanize-this v2.0, a zero-dependency, TypeScript-native utility that makes your machine-readable data feel like it was handcrafted for humans.
🆕 What’s new in v2.0?
-> Indian/International Number System Support
-> Format large numbers like ₹1.5Cr, 2L, etc. out of the box.
-> Time Formatting
-> Human-friendly phrases like just now, 2 days ago, etc.
-> i18n support and locale aware
-> New Formatters Added
--> slug(): Create URL-friendly strings
--> ordinal(): 1st, 2nd, 3rd...
--> url(), plural(), and more
-> Improved Error Handling
-> Functions fail gracefully with meaningful fallbacks.
Even Smaller Bundle
~5KB gzipped, tree-shakeable, ESM + CJS, works in browser and Node.
import { humanize } from "humanize-this";
humanize.currency(15000000); // ₹1.50Cr
humanize.slug("Let's Build!") // lets-build
humanize.timeAgo(new Date()) // just now
Try it out
-> npm: humanize-this
-> GitHub: github.com/Shuklax/humanize-this
Open source. Actively maintained. Ideas and feedback are super welcome.
If you find it useful, a ⭐ on GitHub would mean a lot.
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.