西暦に応じた恵方を取得することができるライブラリ
You can install this library using npm:
npm install ehou
// 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);
Ehou: {
ehou: {
direction: {
azimuth: 345,
text: "北北西"
},
hira: "みずのえ",
kana: "ミズノエ",
lastDigitOfTheYear: 2,
name: "壬",
romaji: "mizunoe",
},
year: 2022
}
{
ehou: {
name: string;
hira: string;
kana: string;
romaji: string;
direction: {
text: string;
azimuth: number;
}
lastDigitOfTheYear: number;
}
[];
year: number;
}
key | detail | type |
---|---|---|
name |
年の十干 | string |
hira |
ひらがな表記 | string |
kana |
カタカナ表記 | string |
romaji |
ローマ字表記 | string |
direction |
恵方情報 | object |
text |
16方位 | string |
azimuth |
方位角 | number |
lastDigitOfTheYear |
西暦年の1の位 | number |
year |
西暦(4桁) | number |
This project is licensed under the MIT License - see the LICENSE file for details.