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

arabic-dates

v0.1.0

Published

Arabic dates for apps and content calendars: month names by region (يناير / كانون الثاني / جانفي), Hijri Umm al-Qura conversion, Ramadan and Eid planning dates, and relative time with correct dual and plural (منذ دقيقتين). Zero dependencies.

Readme

arabic-dates

Arabic dates for apps, websites and content calendars. Month names the way each region says them, Hijri dates on the Umm al-Qura calendar, the year's Ramadan and Eid planning dates, and "time ago" with correct Arabic dual and plural. Zero dependencies (uses the built-in Intl calendar).

تواريخ عربية للتطبيقات وجداول المحتوى: أسماء الأشهر حسب كل منطقة، التاريخ الهجري، مواعيد رمضان والعيد، و«منذ دقيقتين» بقواعد صحيحة.

npm install arabic-dates

Usage

import { formatDate, formatHijri, islamicOccasions, timeAgo } from "arabic-dates";

formatDate("2026-11-02", { months: "levant", weekday: true }); // "الاثنين 2 تشرين الثاني 2026"
formatDate("2026-11-02", { months: "both" });                  // "2 تشرين الثاني (نوفمبر) 2026"
formatDate("2026-08-15", { months: "maghreb" });               // "15 أوت 2026"

formatHijri("2026-11-02");                                     // "22 جمادى الأولى 1448 هـ"

islamicOccasions(2027).map((o) => `${o.ar}: ${o.date.toISOString().slice(0, 10)}`);
// ["الإسراء والمعراج: 2027-01-05", "بداية رمضان: 2027-02-08", "عيد الفطر: 2027-03-09", …]

timeAgo(postDate);                         // "منذ دقيقتين", "منذ 3 أيام", "أمس"
timeAgo(postDate, { style: "levant" });    // "قبل 3 أيام", "مبارح", "هلأ"

Month names

| Style | Used in | January | | --- | --- | --- | | standard (default) | Egypt, Gulf, most media | يناير | | levant | Jordan, Palestine, Syria, Lebanon, Iraq | كانون الثاني | | maghreb | Algeria, Tunisia | جانفي | | both | Levant + standard together | كانون الثاني (يناير) |

Hijri dates, honestly

toHijri, fromHijri and islamicOccasions use the Umm al-Qura calendar from your runtime's Intl data. Official start dates for Ramadan and the Eids are announced after moon sighting and can differ by a day between countries, so use them for planning content, not for religious rulings.

Requires a runtime with full ICU (Node 18+, modern browsers, Deno, Bun).

License

MIT © Eng. Moath Alherani