Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

iztro

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iztro

轻量级紫微斗数星盘生成库。可以通过出生年月日获取到紫微斗数星盘信息、生肖、星座等信息。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


Version published
Weekly downloads
329
increased by15.44%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Keywords

FAQs

Package last updated on 29 Aug 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc