JSPM

  • Created
  • Published
  • Downloads 457
  • Score
    100M100P100Q96681F
  • License MIT

轻量级紫微斗数星盘生成库。可以通过出生年月日获取到紫微斗数星盘信息、生肖、星座等信息。A lightweight kit to astrolabe generator of The Purple Star Astrology (Zi Wei Dou Shu). The Purple Star Astrology(Zi Wei Dou Shu) is a Chinese ancient astrology. You're able to get your horoscope and personality from the astrolabe

Package Exports

  • iztro
  • iztro/lib/index.js
  • iztro/lib/utils
  • iztro/lib/utils/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iztro) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

IZTRO

一套轻量级紫微斗数排盘工具库。

GitHub Workflow Status (with event) npm GitHub top language Codecov npm Maintenance GitHub GitHub code size in bytes npm bundle size GitHub issues GitHub package.json dynamic


简体中文 🔸 English

📢 介绍

用于紫微斗数排盘的工具库,目前支持简体中文、繁体中文、英文、韩文、日文,大家有任何问题欢迎到这里提问交流,如果发现程序有不对的地方,欢迎到这里提交Bug。扣码不易,希望得到各位大佬的星星。🍻

🌰 举个栗子

🎲 用法

🚀 让我们开始把

npm i iztro -S

❓ 调用方法

  • ES6 Module

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

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

相信文档请移步开发文档

☕ 总结

如果您觉得本程序对您有用的话,可以给我带杯咖啡吗?👍 Paypal Me

以上数据可以生成如下星盘,其中palaces数据用于填充12宫,其他数据用于填充中宫。

demo

📜 版权(LICENSE)

MIT License

Copyright © 2023 Sylar Long

请合理使用本开源代码,禁止用于非法目的。