npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

make-it-rain

v1.1.2

Published

Because who formats money manually like a peasant?

Downloads

167

Readme

💸 make-it-rain 💸

Version Node.js License: MIT

The Only Money Formatter You'll Ever Need (Probably)

So, you've finally decided that numbers should look nice? Wow, groundbreaking.
Instead of manually adding commas and dots like a caveman, let make-it-rain handle the tough job of making your numbers actually readable.

🚀 Why Use This?

Because:
✅ You want your app to look like it knows what money is.
✅ You're too lazy to format numbers manually (same).
✅ You finally realized not everyone uses the same thousands separator.
✅ You enjoy writing toLocaleString() 50 times per project? No? Didn’t think so.

📦 Installation

Oh no, another package to install? Deal with it.

npm install make-it-rain

or if you're feeling edgy:

yarn add make-it-rain

🛠️ Usage

Initialize this life-changing formatter once, then flex on your ugly numbers forever.

const makeItRain = require("make-it-rain");  

const money = makeItRain("EUR", ".", true); // Set it and forget it  

console.log(money.makeItPretty(1234567.89)); // €1.234.567,89  
money.useWhat(false); // Switch to ISO code mode  
console.log(money.makeItPretty(1234567.89)); // EUR 1.234.567,89  

| Method | Description | |--------|-------------| |makeItRain(currency, separator, useSymbol) | Initializes the formatter once. Currency = any ISO currency code, separator = , or ., useSymbol = true for symbols ($), false for codes (USD). | | makeItPretty(amount) | Takes a number and makes it visually acceptable.| | swapMoney(newCurrency) | Change the currency to something else, because why not? | | useWhat(symbol) | Toggle between using currency symbols ($) or ISO codes (USD). | | whatNow() | Returns the current currency, in case you forgot. |

🎩 Features (That Should Have Existed in JavaScript Already)

  • One-time setup: Set currency & separator once, use it everywhere.
  • Formats numbers beautifully: Because nobody likes reading 1000000.00.
  • Handles separators like a champ: Pick , or ., because the world can't agree.
  • Errors when you mess up: Because I'm not letting you pass "lol" as a number.

❌ What This Won’t Do

  • Convert currency: This isn't a forex exchange, buddy.
  • Fix your bad financial decisions: Your debt is still your problem.
  • Magically make you rich: But hey, your numbers will look expensive.

🏆 Contributing

Want to contribute? Cool. Fork it, break it, fix it, and submit a PR.

📜 License

MIT – Because I'm not here to sue you.

⭐ Pro Tip

Use this package and pretend you’re rich. You’re welcome.

This README will ensure your package is taken seriously while also making people question their life choices.