Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【开源自荐】一套获取紫微斗数星盘信息的Javascript开源库 #2658

Open
SylarLong opened this issue Dec 14, 2023 · 2 comments

Comments

@SylarLong
Copy link

推荐项目

  • 项目名称
    iztro

  • 项目地址:
    https://github.com/SylarLong/iztro

  • 类别:
    JS

  • 项目标题:
    一套获取紫微斗数星盘信息的Javascript开源库

  • 项目描述:
    提供获取紫微斗数星盘信息和运限分析API,并且有完善的文档、科普以及实现效果

  • 亮点:
    轻量级、多语言支持,首款文档完善,并配备了知识库的紫微斗数相关开源库。调用方法,并提供了纯JS库的打包,支持ES6 Module和CommonJS方式引入。

    提供了配套的React框架下的组件

  • 示例代码:

    • ES6 Module

      import { astro } from 'iztro';
      
      // 通过阳历获取星盘信息
      const astrolabe = astro.bySolar('2000-8-16', 2, '女', true, 'zh-CN');
      
      // 通过农历获取星盘信息
      const astrolabe = astro.byLunar('2000-7-17', 2, '女', false, true, 'zh-CN');
    • CommonJS

      var iztro = require('iztro');
      
      // 通过阳历获取星盘信息
      var astrolabe = iztro.astro.bySolar('2000-8-16', 2, '女', true, 'zh-CN');
      
      // 通过农历获取星盘信息
      var astrolabe = iztro.astro.byLunar('2000-7-17', 2, '女', false, true, 'zh-CN');
  • 截图:

    文档截图

    image

    image

    实现效果截图

    image

    image

    image

  • 后续更新计划:

    • 加入更多分析方法
    • 加入格局的分析方法
    • 完善知识库
    • 在DEMO站里加入更多应用场景
  • 文档地址:

    https://ziwei.pro

  • DEMO地址:

    https://ziwei.pub

@xsxz01
Copy link

xsxz01 commented Dec 18, 2023

这难道就是赛博修仙吗

@vonsago
Copy link

vonsago commented Dec 18, 2023

天机不可泄露啊道友,很危险的这样,严肃脸)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants