kenat-cli
Version:
A CLI for the Kenat Ethopian calendar library
15 lines (11 loc) • 499 B
JavaScript
import Kenat from 'kenat';
import gradient from 'gradient-string';
const titleGradient = gradient(['yellow', 'green']);
export const handleTodayCommand = () => {
const today = new Kenat();
const enDate = ` ${today.format({ lang: 'english', showWeekday: true })}`;
const amDate = ` ${today.format({ lang: 'amharic', showWeekday: true, useGeez: true })}`;
console.log(titleGradient("\nToday's Ethiopian Date:"));
console.log(enDate);
console.log(amDate);
};