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

ethiopian-date-converter-swiss-knife

v1.0.0

Published

Swiss Knife version of Ethiopian Calendar converter utility for converting between Ethiopian and Gregorian calendar dates

Downloads

68

Readme

Zemen 📅 by Bytepulse Technologies

A lightweight and efficient Ethiopian calendar conversion library for JavaScript/TypeScript. Convert dates between Ethiopian (የኢትዮጵያ አቆጣጠር) and Gregorian calendars with ease.

Features

  • 🚀 Simple and intuitive API
  • 💪 Written in TypeScript
  • 🎯 Minimal dependencies
  • ✅ Fully tested
  • 📦 Small bundle size
  • 🌍 Supports both browser and Node.js environments

Installation

npm install ethiopian-date-converter-swiss-knife

or

yarn add ethiopian-date-converter-swiss-knife

or

pnpm add ethiopian-date-converter-swiss-knife

Usage

import EthiopianCalendar from 'ethiopian-date-converter-swiss-knife';

const calendar = new EthiopianCalendar();

// Convert Gregorian to Ethiopian
// Using array format
const gregorianDate = [2024, 12, 28];
const ethiopianDate = calendar.toEthiopian(gregorianDate);

// Using date picker string format
const ethiopianDate2 = calendar.toEthiopian('2024-12-28');

// Using individual parameters
const ethiopianDate3 = calendar.toEthiopian(2024, 12, 28);

console.log(ethiopianDate);
/* Output:
{
  dmy: '19-4-2017',
  mdy: '4-19-2017',
  ymd: '2017-4-19',
  ymdArr: [2017, 4, 19],
  amDate: 'ቅዳሜ, 19 ታህሳስ 2017',
  tigDate: 'ቀዳም, 19 ታሕሳስ 2017',
  orDate: 'Sanbata, 19 Muddee 2017',
  dateObject: 2017-04-19T00:00:00.000Z
}
*/

// Convert Ethiopian to Gregorian
// Using array format
const ethDate = [1964, 1, 1];
const gregDate = calendar.toGregorian(ethDate);

// Using date picker string format
const gregDate2 = calendar.toGregorian('1964-01-01');

// Using individual parameters
const gregDate3 = calendar.toGregorian(1964, 1, 1);

console.log(gregDate);
/* Output remains the same */

API Reference

toEthiopian(date: [number, number, number] | string | number, month?: number, day?: number): EthiopianDateResult

Converts a Gregorian date to Ethiopian calendar date. Accepts:

  • Array format: [year, month, day]
  • Date picker string format: 'YYYY-MM-DD'
  • Individual parameters: (year, month, day)

toGregorian(date: [number, number, number] | string | number, month?: number, day?: number): GregorianDateResult

Converts an Ethiopian calendar date to Gregorian date. Accepts:

  • Array format: [year, month, day]
  • Date picker string format: 'YYYY-MM-DD'
  • Individual parameters: (year, month, day)

Why Zemen?

"Zemen" (ዘመን) means "time" or "era" in Amharic. This library aims to make Ethiopian calendar conversions simple and accessible for developers working with dates in Ethiopian context.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you find this library helpful, please consider giving it a star ⭐️ on GitHub!

Author

Mooler


Made with ❤️ for the Ethiopian developer community