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

ec-converter

v1.0.0

Published

A library for converting between Ethiopian calendar and Gregorian calendar

Readme

EC-Converter

A JavaScript/TypeScript library for converting between Ethiopian calendar and Gregorian calendar.

npm GitHub Workflow Status

Features

  • Convert dates from Gregorian to Ethiopian calendar
  • Convert dates from Ethiopian to Gregorian calendar
  • Validate dates in both calendar systems
  • Written in TypeScript with full type definitions
  • Zero dependencies
  • Comprehensive test coverage

Installation

npm install ec-converter

or

yarn add ec-converter

Usage

Converting from Gregorian to Ethiopian

import { toEthiopian } from 'ec-converter';

// September 11, 2023 (Gregorian) -> Meskerem 1, 2016 (Ethiopian)
const ethiopianDate = toEthiopian({ year: 2023, month: 9, day: 11 });
console.log(ethiopianDate);
// Output: { year: 2016, month: 1, day: 1 }

Converting from Ethiopian to Gregorian

import { toGregorian } from 'ec-converter';

// Meskerem 1, 2016 (Ethiopian) -> September 11, 2023 (Gregorian)
const gregorianDate = toGregorian({ year: 2016, month: 1, day: 1 });
console.log(gregorianDate);
// Output: { year: 2023, month: 9, day: 11 }

Validating Dates

import { isValidEthiopianDate, isValidGregorianDate } from 'ec-converter';

// Check if a Gregorian date is valid
console.log(isValidGregorianDate({ year: 2023, month: 2, day: 29 }));
// Output: false (2023 is not a leap year)

// Check if an Ethiopian date is valid
console.log(isValidEthiopianDate({ year: 2016, month: 13, day: 6 }));
// Output: true (2016 is a leap year in Ethiopian calendar)

Ethiopian Calendar Overview

The Ethiopian calendar:

  • Is approximately 7-8 years behind the Gregorian calendar
  • Has 13 months: 12 months of 30 days each and a 13th month of 5 or 6 days
  • Has a leap year every 4 years, similar to the Gregorian calendar but with different rules
  • Starts its new year on what is September 11 (or September 12 in leap years) in the Gregorian calendar

Month Names

  1. Meskerem (መስከረም) - 30 days
  2. Tikimt (ጥቅምት) - 30 days
  3. Hidar (ኅዳር) - 30 days
  4. Tahsas (ታኅሣሥ) - 30 days
  5. Tir (ጥር) - 30 days
  6. Yekatit (የካቲት) - 30 days
  7. Megabit (መጋቢት) - 30 days
  8. Miyazya (ሚያዝያ) - 30 days
  9. Ginbot (ግንቦት) - 30 days
  10. Sene (ሰኔ) - 30 days
  11. Hamle (ሐምሌ) - 30 days
  12. Nehase (ነሐሴ) - 30 days
  13. Pagume (ጳጉሜ) - 5 or 6 days

License

MIT