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

traditional-date-formatters

v1.0.2

Published

Traditional date formatters from cultures around the world

Downloads

278

Readme

Traditional Date Formatters 🌍

A collection of traditional date formatters from cultures around the world. Each formatter provides traditional calendar systems, month names, and weekday names in various cultural formats.

🎯 Philosophy

Simple, focused formatters - no complex calculations, just beautiful traditional formatting!

📦 Available Formatters

| Culture | Status | |---------|--------| | 🇱🇰 Sinhala | ✅ Available | | 🇳🇵 Nepali | 🚧 Coming soon | | 🇮🇷 Persian | 🚧 Coming soon | | 🇪🇹 Ethiopian | 🚧 Coming soon | | 🇨🇳 Chinese | 🚧 Coming soon |

🚀 Quick Start

Installation

npm install traditional-date-formatters

Sinhala (Sri Lankan)

import { formatSinhala } from 'traditional-date-formatters';

formatSinhala(new Date('2025-01-01'), 'traditional');
// => 2025 දුරුතු මස 01 වන බදාදා

Available Formats

import { formatSinhala } from 'traditional-date-formatters';

const date = new Date();

formatSinhala(date, 'short');        // සඳුදා
formatSinhala(date, 'medium');       // දුරුතු මස සඳුදා
formatSinhala(date, 'long');         // 2026 දුරුතු මස 12 සඳුදා
formatSinhala(date, 'traditional');  // 2026 දුරුතු මස 12 වන සඳුදා
formatSinhala(date, 'gregorian');    // 2026 ජනවාරි 12 සඳුදා
formatSinhala(date, 'full');         // 2026 ජනවාරි 12 වන සඳුදා (දුරුතු මස)
formatSinhala(date, 'sinhala-numerals'); // 2026 දුරුතු මස 12 වන සඳුදා (using traditional numerals)

🤝 Contributing

We welcome formatters from ALL cultures!

Add Your Culture's Formatter

  1. Read Adding a Formatter Guide
  2. Create your implementation in packages/your-culture
  3. Follow the same simple structure as Sinhala
  4. Export your formatter from the main index.ts
  5. Submit a Pull Request

What We Need

  • Month names in your language
  • Weekday names in your language
  • Traditional format structure
  • Cultural context documentation

No complex algorithms needed - just the traditional names and formats!

🎨 Use Cases

  • Cultural Apps - Display dates in users' traditional formats
  • Festival Calendars - Show traditional month names
  • Educational Tools - Teach traditional calendar systems
  • Wedding Invitations - Format dates traditionally
  • Temple/Religious Apps - Display dates in cultural context

📖 Documentation

🌟 Project Goals

  1. Preserve cultural heritage through traditional date formatting
  2. Simple and maintainable - no complex calculations
  3. Community-driven - each culture maintains their own
  4. Well-documented - with cultural context
  5. Easy to use - simple API for developers

📜 License

MIT - Each package maintains its own license

💬 Community

  • Discussions: Share ideas and ask questions
  • Issues: Report bugs or request features
  • Pull Requests: Contribute your culture's formatter!

Built with ❤️ by the global community

Preserving traditional date formats for future generations