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

thetkarit

v1.0.5

Published

The Burmese calendar calculations focus on Burmese calendar and astronomy studies

Downloads

0

Readme

GitHub License

Overview

The Burmese calendar calculations focus on Burmese calendar and astronomy studies and are still in progress.

Most of the code here is in the public domain or released under an open source license, though some code and/or data may be under other copyright (usually an open source license), see Resources.


Node Js (JavaScript/TypeScript)

Status

NPM Version GitHub Actions Workflow Status GitHub Actions Workflow Status

Install

npm i thetkarit
yarn add thetkarit
pnpm add thetkarit

Usage

import { BurmeseCal } from "thetkarit"; // esm

const { BurmeseCal } = require("thetkarit"); //common js

const bcal = new BurmeseCal();

API Docs : https://tsdocs.dev/docs/thetkarit/latest/index.html


Browser (JavaScript)

Status

GitHub Actions Workflow Status

jsDelivr : https://www.jsdelivr.com/package/npm/thetkarit

<script src="https://cdn.jsdelivr.net/npm/thetkarit/cdn/index.min.js"></script>

C++

Status

GitHub Actions Workflow Status GitHub Actions Workflow Status GitHub Actions Workflow Status

Useage

Download latest thetkarit.zip from here.

#include "thetkarit/bcal.hpp" // include bcal header
#include <iostream>
#include <iomanip>

/// @brief Gregorian Calendar Date to Burmese Calendar Date
int main()
{
    bcal::BcalInfo dv = bcal::day_v(2025, 2, 12).bcal_info;
    std::cout << "Sasana Year: " << std::setprecision(0) << dv.sasana_year << std::endl;
    std::cout << "Burmese Year: " << std::setprecision(0) << dv.burmese_year << std::endl;
    std::cout << "Burmese Month: " << dv.burmese_month_str << std::endl;
    std::cout << "Moon Phase: " << dv.moon_phases_str << std::endl;
    std::cout << "Fortnight Day: " << std::setprecision(0) << dv.fortnight_day << std::endl;
    std::cout << "Day in Burmese Month: " << std::setprecision(0) << dv.burmese_day << std::endl;
    std::cout << "Public Holidays: ";
    for (const auto &holiday : dv.public_holiday)
    {
        std::cout << holiday << std::endl;
    }
}
Sasana Year: 2568
Burmese Year: 1386
Burmese Month: Tabodwe
Moon Phase: Waxing
Fortnight Day: 12
Day in Burmese Month: 12
Public Holidays: Union Day

Example C++ program

Clone the repository and build it using cmake, and run;

git clone https://github.com/phothinmg/thetkarit.git
cd thetkarit
mkdir build
cd build
cmake ..
make
./bcal # Running example

Resources

Burmese Calendar

  • The Algorithm for calculation of Burmese Calendar (Myanmar Calendar) and astrological calendar days by Dr. Yan Naing Aye.

  • References:

    https://cool-emerald.blogspot.com/2013/06/algorithm-program-and-calculation-of.html

    https://cool-emerald.blogspot.com/2013/12/myanmar-astrological-calendar-days.html

Julian Date and Moon Phases

  • A collection of astronomy related programs, algorithms, tutorials, data and implementation of the algorithm from Meeus' Astronomical Algorithms for computing the dates of the phases of the Moon by Greg Miller (gmiller@gregmiller.net).

  • Reference: https://www.celestialprogramming.com/