ehou
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

key detail type
name 年の十干 string
hira ひらがな表記 string
kana カタカナ表記 string
romaji ローマ字表記 string
direction 恵方情報 object
text 16方位 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.

Readme

Keywords

none

Package Sidebar

Install

npm i ehou

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

9.09 kB

Total Files

8

Last publish

Collaborators

  • hidaka