npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nine-limit

v1.0.2

Published

Lunar calendar conversion tool whose precision is up to minute unit.

Downloads

7

Readme

Nine Limit

build 九極

原理

根據西元 年月日時分 換算成農(陰)曆 年月日時分 ,接著再利用換算過後的年月日時分再一次換算成九極格式。

九極格式

| 名稱 | 範例 | 單位與其順序 | |-------|---------|--------------| | 年極 | 已亥年 | 依農民曆算法 | | 月極 | 戊辰月 | 依農民曆算法 | | 大段極 | 戌大段 | 寅卯辰巳午未申酉戌亥子丑 | | 中段極 | 酉中段 | 寅卯辰巳午未申酉戌亥子丑 | | 小段極 | 水小段 | 木火土金水 | | 日極 | 戊子日 | 依農民曆算法 | | 時極 | 己未時 | 依農民曆算法 | | 大刻極 | 戌大刻 | 寅卯辰巳午未申酉戌亥子丑 | | 小刻極 | 陰小刻 | 陽陰 |

安裝

$ npm install nine-limit

使用

toString()

const nineLimit = new NineLimit('2019-03-19 03:25')
  .toString()

console.log(nineLimit)
// 乙亥年 丁卯月 午大段 亥中斷 火小段 乙卯日 戊寅時 辰大刻 陽小刻

toObject()

const nineLimit = new NineLimit('2019-03-19 03:25')
  .toObject()

console.log(nineLimit)
// { yearLimit: { label: '年極', value: '己亥', unit: '年' },
//   monthLimit: { label: '月極', value: '戊辰', unit: '月' },
//   largeSegmentLimit: { label: '大段極', value: '酉', unit: '大段' },
//   mediumSegmentLimit: { label: '中段極', value: '亥', unit: '中段' },
//   smallSegmentLimit: { label: '小段極', value: '水', unit: '小段' },
//   dayLimit: { label: '日極', value: '辛卯', unit: '日' },
//   hourLimit: { label: '時極', value: '乙未', unit: '時' },
//   largeQuaterLimit: { label: '大刻極', value: '辰', unit: '大刻' },
//   smallQuaterLimit: { label: '小刻極', value: '陽', unit: '小刻' }
//  }