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 🙏

© 2024 – Pkg Stats / Ryan Hefner

taobi

v0.2.6

Published

基于js的奇门摆盘

Downloads

29

Readme

在线奇门

基于js的在线奇门摆盘库

简介

算法

公历转干支历

参考了古时干支历的断法,安公转断年月/自转断日时,以公转转儒略日再计算实际的干支历 公转采用了天文算法的vsop87,默认以简化库的算法计算,以便加快生成速度,误差在秒级 误差经过章动、光行差等修正,以及考虑世界时和力学时的间隔

章动

地球章动默认采用了IAU1980的算法,尚未实现IAU2000

世界时与力学时差

默认采用了NASA的计算方法,存在一定的误差,非百年时间可忽略不计

用局计算

用局安自转断二十四节气,考虑按天或小时两种精度计算,也可以作为自定义参数自定义指定

摆盘法

目前仅支持时家转盘奇门

讨论组

暂无,可以在github上

功能

干支历

  • 年干支
  • 月干支
  • 日干支
  • 时干支

用局 施工中

算法

摆盘

  • step1:获取用局
  • step2:布三奇六仪 ✔
  • step3:得值使/值符 ✔
  • step4:布九星 ✔
  • step5:布八门 ✔
  • step6:布八神 ✔

解盘

  • 标记空亡
  • 标记马星
  • 对冲
  • 旺相休囚废(死)
  • 落宫

工具

  • array
  • 文档输出 测试

文档

对象

干支 SexagenaryCycle

属性

  • x 天干序号
  • y 干支序号
  • index 干支序号

方法

  • cs(is) 返回天干序号或字符

干支历 Calendar

宫 Palace

奇门 TheArtOfBecomingInvisible

标准词汇表

八卦 Trigrams

天干 Celestial Stems

甲:METH 乙:ETH 丙:PROP 丁:BUT 戊:PENT 己:HEX 庚:HEPT 辛:OCT 壬:NON 癸:DEC

地支 Terrestrial Branches

子:JAN 丑:FEB 寅:MAR 卯:APR 辰:MAY 巳:JUN 午:JUL 未:AUG 申:SEPT 酉:OCT 戌:NOV 亥:DEC

干支表 Sexagenary Cycle

甲子:MATH_JAN 乙丑:ETH_FEB 丙寅:PROP_MAR 丁卯:BUT_APR 戊辰:PENT_MAY 己巳:HEX_JUN 庚午:HEPT_JUL 辛未:OCT_AUG 壬申:NON_SEPT 癸酉:DEC_OCT 甲戌:MATH_NOV 乙亥:ETH_DEC 丙子:PROP_JAN 丁丑:BUT_FEB 戊寅:PENT_MAR 己卯:HEX_APR 庚辰:HEPT_MAY 辛巳:OCT_JUN 壬午:NON_JUL 癸未:DEC_AUG 甲申:METH_SEPT 乙酉:ETH_OCT 丙戌:PROP_NOV 丁亥:BUT_DEC 戊子:PENT_JAN 己丑:HEX_FEB 庚寅:HEPT_MAR 辛卯:OCT_APR 壬辰:NON_MAY 癸巳:DEC_JUN 甲午:METH_JUL 乙未:ETH_AUG 丙申:PROP_SEPT 丁酉:BUT_OCT 戊戌:PENT_NOV 己亥:HEX_DEC 庚子:HEPT_JAN 辛丑:OCT_FEB 壬寅:NON_MAR 癸卯:DEC_APR 甲辰:METH_MAY 乙巳:ETH_JUN 丙午:PROP_JUL 丁未:BUT_AUG 戊申:PENT_SEPT 己酉:HEX_OCT 庚戌:HEPT_NOV 辛亥:OCT_DEC 壬子:NON_JAN 癸丑:DEC_FEB 甲寅:METH_MAR 乙卯:ETH_APR 丙辰:PROP_MAY 丁巳:BUT_JUN 戊午:PENT_JUL 己未:HEX_AUG 庚申:HEPT_SEPT 辛酉:OCT_OCT 壬戌:NON_NOV 癸亥:DEC_DEC

六仪 Ceremony

戊:PENT 己:HEX 庚:HEPT 辛:OCT 壬:NON 癸:DEC

三奇 Surprise

丁:BUT 丙:PROP 乙:ETH

后天八卦 Acquired

坎:KAN 坤:EARTH 震:SHAKE 巽:XUN 中:MID 乾:HEAVEN 兑:DUI 艮:GEN 离:LEAVE

地盘 Earths

天盘 Heavens

人盘 Peoples