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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dimdevs/nusantara

v0.1.4

Published

A utility toolkit for formatting and validating data in the Indonesian context. From currency and dates to bank lists and national ID validation.

Readme

Nusantara 🦅

A utility toolkit for formatting, validating, and working with data relevant to the Indonesian context — including currency, dates, phone numbers, NIK (national ID), and more.

Build apps faster and cleaner with localized utilities made for Indonesia.

npm version license npm downloads


📦 Features

  • ✅ Format currency to Rupiah
  • ✅ Convert numbers to Indonesian words (terbilang)
  • ✅ Format Indonesian-style dates
  • ✅ Validate NIK (Nomor Induk Kependudukan)
  • 🏦 List of Indonesian banks (coming soon)
  • 🏛️ Regional/provincial data (planned)

📥 Installation

npm install @dimdevs/nusantara
# or
yarn add @dimdevs/nusantara

🚀 Usage

import {
  formatRupiah,
  numberToWordsId,
  formatDateId,
  validateNIK
} from '@dimdevs/nusantara';

formatRupiah(150000); 
// → 'Rp150.000'

numberToWordsId(2500);
// → 'dua ribu lima ratus'

formatDateId('2025-07-31');
// → '31 Juli 2025'

formatDateId('2025-07-31', 'short');
// → '31/8/2025'

validateNIK('3201010101010001');
// → true

📚 API Reference

formatRupiah(value: number | string): string

Formats a number to Indonesian Rupiah with thousand separators.

numberToWordsId(value: number): string

Converts a number into its Indonesian word representation (terbilang).

formatDateId(date: string | Date, format?: 'long' | 'short'): string

Formats a date to Indonesian style. Defaults to 'long' (e.g., 31 Juli 2025).

validateNIK(nik: string): boolean

Validates a 16-digit Indonesian national ID number (NIK).

🔧 Roadmap

  • [x] Format currency
  • [x] Terbilang (Indonesian words)
  • [x] Format Indonesian date
  • [x] Validate NIK
  • [ ] List of Indonesian banks
  • [ ] Province, city, district data
  • [ ] NPWP, phone validator
  • [ ] Holiday calculator (based on year)

💡 Contributing

Pull requests are welcome! If you'd like to add more utilities relevant to Indonesia (NPWP, postal codes, validation, etc.), feel free to open an issue or submit a PR.

📄 License

MIT © dimdevs