Use buildBazi to generate a comprehensive Bazi (Eight Characters) profile. This function calculates the Four Pillars (Year, Month, Day, Hour), Zodiac, Day Master (日主), Fetal Origin (胎元), Fetal Breath (胎息), Life Palace (命宫), Body Palace (身宫), Shen Sha (神煞), Decade Fortune (大运), and Pillar Relations (刑冲合会).
Options
lunarHour: A LunarHour object representing the birth time.eightCharProviderSect (optional): Determines the provider used for lunar hour calculations. Use 1 for DefaultEightCharProvider or 2 for LunarSect2EightCharProvider. Defaults to 2.gender (optional): The gender of the individual. Use 0 for Female or 1 for Male. Defaults to 1.
import { buildBazi } from './path-to-bazi';
const baziProfile = buildBazi({
lunarHour: myLunarHourInstance,
eightCharProviderSect: 2,
gender: 1
});