1.0.1 • Published 6 months ago

myanmar-baydin v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

BayDin NPM Package

A package to get zodiac signs, Chaldean numerology, Myanmar names, and their details.

Installation

To install the package, run the following command:

npm install myanmar-baydin

Usage

Here's an example of how to use the BayDin package:

import MMBayDin from 'myanmar-baydin';

const baydin = new MMBayDin(new Date());
console.log(baydin.getBasic());
console.log(baydin.getZodiacSign());
console.log(baydin.getChaldeanNumerology("YourName"));
console.log(baydin.getMyanmarNames("မြန်မာအမည်"));

API

MMBayDin

constructor(date: Date)

Creates a new instance of the MMBayDin class.

  • date: The date for which you want to get the details.

getBasic(): object

Returns basic details including the Myanmar date and MaHaBote.

{
    year: number;
    month: string;
    moonPhase: string;
    date: string;
    day: string;
    sabbath: string;
    sabbatheve: string;
    yatyaza: string;
    pyathada: string;
    thamanyo: string;
    amyeittasote: string;
    warameittugyi: string;
    warameittunge: string;
    yatpote: string;
    thamaphyu: string;
    nagapor: string;
    yatyotema: string;
    mahayatkyan: string;
    shanyat: string;
    nagahle: string;
    mahabote:  "အဓိပတိ" | "အထွန်း" | "သိုက်" | "ရာဇာ" | "မရဏ" | "ဘင်္ဂ" | "ပုတိ";
    nakhat: string;
    thingyan: object;
    original: object;
}

getZodiacSign(): ZodiacSign | undefined

Returns the zodiac sign for the provided date.

Example

const baydin = MMBayDin(new Date());
const zodiacSign = baydin.getZodiacSign();
console.log(zodiacSign);
{
    name: "Aries",
    dateRange: "March 21 - April 19",
    startDate: new Date(2023, 2, 21),
    endDate: new Date(2023, 3, 19),
    element: "Fire",
    traits: ["Courageous", "Determined", "Confident"],
    luckyColors: ["Red", "White"],
    luckyNumbers: [1, 8, 17],
    compatibleSigns: ["Leo", "Sagittarius"],
    careerSuggestions: ["Entrepreneur", "Soldier", "Athlete"],
    healthTips: "Engage in regular physical activity to channel your energy positively.",
    sign: "Ram",
    preferedCrystals: ["Carnelian", "Garnet"],
    purpose: "To lead and inspire others with their passion and determination."
}

getChaldeanNumerology(EnglishName: string)

Returns the Chaldean numerology details for the provided English name.

Example

const baydin = MMBayDin(new Date());
const numerology = baydin.getChaldeanNumerology("John Doe");
console.log(numerology);
{
  number: 7,
  letters: [ 'O', 'Z' ],
  planet: 'Neptune',
  meanings: [
    'The shadow of two',
    'insight',
    'intuition',
    'intelligent',
    'curious'
  ]
}

getMyanmarNames(MyanmarName?: string)

Returns Myanmar names details including mintheinkha, fifth, patkhat, and whether the provided name is patkhat.

Example

const baydin = MMBayDin(new Date());
const myanmarNames = baydin.getMyanmarNames("အောင်လင်းထွန်း");
console.log(myanmarNames);
{
    mintheinkha: [ 'အင်္ဂါ', 'ဗုဒ္ဓဟူး', 'စနေ' ], // မင်းသိင်္ခအမည်ပေးနည်း
    fifth: [ 'စနေ', 'ဗုဒ္ဓဟူး' ],               // မွေးနံစ ပဥ္စပွတ်နံဆုံး အမည်ပေးနည်း
    patkhat: [                              // ပက္ခတ်မိသော အမည်တွဲများ
        [ 'စနေ', 'စနေ' ],
        [ 'အင်္ဂါ', 'ဗုဒ္ဓဟူး' ],
        [ 'သောကြာ', 'တနင်္ဂ‌နွေ' ],
        [ 'တနင်္လာ', 'ကြာသာပတေး' ],
        [ 'ကြာသာပတေး', 'တနင်္လာ' ],
        [ 'တနင်္ဂ‌နွေ', 'သောကြာ' ],
        [ 'ဗုဒ္ဓဟူး', 'အင်္ဂါ' ]
    ],
    isPatkhat: false                        // ထည့်သွင်းသောအမည် ပက္ခတ်မိ မမိ
}

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

Special thanks to all contributors and the open-source community.

Contact

For any questions or suggestions, please contact kyawphyothukpt256@gmail.com.