Skip to content

Latest commit

 

History

History
134 lines (87 loc) · 6.07 KB

README-en_US.md

File metadata and controls

134 lines (87 loc) · 6.07 KB

📦 IZTRO

A lightweight astrolabe generator of The Purple Star Astrology(Zi Wei Dou Shu).

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 FOSSA Status Socket Badge


简体中文 🔸 English


Summary

It's used to obtain the data of The Purple Star Astrology (Zi Wei Dou Shu).

Feature list

  • To obtain the astrology data by birthday (Solar calendar or Lunar calendar) and birth time (Chinese hour).
    • basic information(birthday, Chinese hour, sign, Chinese zodiac, body lord, soul lord etc.)
    • palace information(name, heavenly stem and earthly branch, stars etc.)
    • star information(brightness, mutagen and type)
    • horoscope information(decadal, nominal age, yearly, monthly, daily, hourly)
    • mutagen
  • get mutagen by heavenly stem
  • get surrounded palaces by palace index or name
  • check whether specific stars in a specific palace
  • check whether specific stars in surrounded palaces
  • multilingual input/output results

Quick link

Installation

you can choose any package manager to install iztro.

  • NPM

    npm install iztro -S
    
  • Yarn

    yarn add iztro
    
  • pnpm

    pnpm install iztro -S
    

Simple example

This is a very simple example to show how to use iztro to get the astrolabe data. please visit develop document for details.

  • ES6 Module

    import { astro } from 'iztro';
    
    // get astrolabe data by solar date
    const astrolabe = astro.astrolabeBySolarDate('2000-8-16', 2, 'male', true, 'en-US');
    
    // get astrolabe data by lunar date
    const astrolabe = astro.astrolabeByLunarDate('2000-7-17', 2, 'male', false, true, 'en-US');
  • CommonJS

    var iztro = require('iztro');
    
    // get astrolabe data by solar date
    var astrolabe = iztro.astro.astrolabeBySolarDate('2000-8-16', 2, 'male', true, 'en-US');
    
    // get astrolabe data by lunar date
    var astrolabe = iztro.astro.astrolabeByLunarDate('2000-7-17', 2, 'male', false, true, 'en-US');

If you're interested in iztro and wish to join us,it's very welcome. You can contribute by:

  • create an issue here if you have any good ideas or suggestions.
  • report a bug here if you found any bugs.
  • you can also fork this code to your repository and create PRs for your changes.
  • also, you can contribute the localization files. please refer to locales and create the localization files for your lanuage.
  • additionally, buy me a coffee is another great way to support me Static Badge

Summary

You can generate an astrolabe by using the returned data. Of course it's just an example. You can focus on astrolabe design or data analyzation. This program solves the most tedious work for you, so that you can put more energy on the things you need to pay attention to.

demo

Star History

Star History Chart

MIT License

Copyright © 2023 Sylar Long

FOSSA Status