
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
基于js的在线奇门摆盘库,二十四节气采用天文VSOP87D算法,可精确至分钟 支持自定义拆补法、茅山法、均分法(原创) 2024持续更新中 查看全部项目
旨在打造一个灵活可自定义且规范的奇门摆盘程序 目前支持:
参考了古时干支历的断法,安公转断年月/自转断日时,以公转转儒略日再计算实际的干支历 公转采用了天文算法的vsop87D,默认以简化库的算法计算,以便加快生成速度,误差在秒级 误差经过章动、光行差等修正,以及考虑世界时和力学时的间隔
地球章动默认采用了IAU1980的算法,可以选择IAU2000
默认采用了NASA的计算方法,存在一定的误差,非百年时间可忽略不计
用局安地球公转断二十四节气,考虑按天或小时两种维度计算,也可以作为自定义参数指定
借助天文计算,根据每一节气的实际时长均分3份,分别对应上元中元下元。即按照实际节气的三分之判断是哪一元,不再根据5天一元的规律进行起局。 依据:二十四节气按地球公转均分二十四等分为节气,而公转为一椭圆。则每一节气必然不均等,而节气决定了用局,则实际指代用局之力量来自于太阳,因此每一节气三元也应该严格按照均分进行划分,这就对应了每一个时辰的实际作用力。
目前仅支持时家转盘奇门
暂无,可以在github上
const { TheArtOfBecomingInvisible } = require("taobi");
const { TheArtOfBecomingInvisible } = require("taobi");
const taobi = new TheArtOfBecomingInvisible(new Date());
const data = taobi.getCanvas();
// 公历
const taobi = new TheArtOfBecomingInvisible(new Date());
// 干支历
const taobi = new TheArtOfBecomingInvisible("癸卯甲子甲子甲子",9);
PS:若用干支历起局,必须手动指定用局。
// 默认为转盘
const taobi = new TheArtOfBecomingInvisible(new Date(),null,1 or 2);
// 默认为二盘
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,0);
// 寄二八宫
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,1);
// 寄四维宫/四季宫(未完成)
//指定用局:阳局[1~9] / 阴局[-1~-9]
const taobi = new TheArtOfBecomingInvisible(new Date(),1);
//指定三元 [0-2]上中下元
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,null,{element:1});
//指定用局法 [0-3]均分法/拆补法/茅山法/置闰法(未完成)
const taobi = new TheArtOfBecomingInvisible(new Date(),null,null,null,{elements:1});
FAQs
奇门遁甲-基于js的奇门摆盘
We found that taobi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.