1.1.1 • Published 1 month ago

ehou v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

ehou

npm version build codecov License

ko-fi

Overview

西暦に応じた恵方を取得することができるライブラリ

Notes

Installation

You can install this library using npm:

npm install ehou

Usage

Node.js

// Create an instance
// Year props is optional.
const year = 2022;
const ehou = new Ehou(year);

// output

// Current Year
console.log(ehou.current);

// Last Year
console.log(ehou.last);

// Next Year
console.log(ehou.last);

Output

Sample

Ehou: {
  ehou: {
    direction: {
      azimuth: 345,
      text: "北北西"
    },
    hira: "みずのえ",
    kana: "ミズノエ",
    lastDigitOfTheYear: 2,
    name: "壬",
    romaji: "mizunoe",
  },
  year: 2022
}

Type

{
  ehou: {
    name: string;
    hira: string;
    kana: string;
    romaji: string;
    direction: {
      text: string;
      azimuth: number;
    }
    lastDigitOfTheYear: number;
  }
  [];
  year: number;
}

Detail

keydetailtype
name年の十干string
hiraひらがな表記string
kanaカタカナ表記string
romajiローマ字表記string
direction恵方情報object
text16方位string
azimuth方位角number
lastDigitOfTheYear西暦年の1の位number
year西暦(4桁)number

Link

License

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

1.1.1

1 month ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago