panchang-ts 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -26,6 +26,10 @@ Works offline in React Native (Hermes), Node.js, and browsers.
26
26
 
27
27
  ```bash
28
28
  npm install panchang-ts
29
+ # or
30
+ pnpm add panchang-ts
31
+ # or
32
+ yarn add panchang-ts
29
33
  ```
30
34
 
31
35
  ## Quick Start
@@ -294,9 +298,11 @@ interface DailyTithiInfo extends TithiInfo {
294
298
  // ── Lunar calendar ───────────────────────────────────────────────────────────
295
299
 
296
300
  interface ChandraMasaInfo {
297
- index: number; // 0 = Chaitra … 11 = Phalguna
298
- name: string; // e.g. "Pausha"
299
- isAdhika: boolean; // true = leap/intercalary month
301
+ index: number; // 0 = Chaitra … 11 = Phalguna (Amanta / South-Indian)
302
+ name: string; // e.g. "Pausha" (Amanta name)
303
+ isAdhika: boolean; // true = leap/intercalary month
304
+ purnimantaIndex: number; // Month index in Purnimanta (North-Indian) system
305
+ purnimantaName: string; // Month name in Purnimanta system
300
306
  }
301
307
 
302
308
  interface SamvatInfo {
@@ -313,6 +319,26 @@ interface RashiInfo {
313
319
 
314
320
  // chandraRashi and suryaNakshatra both use RashiInfo
315
321
 
322
+ interface VaraInfo {
323
+ index: number; // 0 = Sunday … 6 = Saturday
324
+ name: string; // e.g. "Ravivara"
325
+ shortName: string; // e.g. "Sun"
326
+ englishName: string; // e.g. "Sunday"
327
+ }
328
+
329
+ interface MasaInfo {
330
+ index: number; // 0 = Mesha … 11 = Meena (solar month)
331
+ name: string; // e.g. "Dhanu"
332
+ }
333
+
334
+ interface KaranaInfo {
335
+ index: number;
336
+ name: string;
337
+ completionPercentage: number;
338
+ endTime: Date | null;
339
+ type: 'fixed' | 'movable';
340
+ }
341
+
316
342
  // ── Choghadiya ───────────────────────────────────────────────────────────────
317
343
 
318
344
  type ChoghadiyaQuality = 'auspicious' | 'inauspicious' | 'neutral';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "panchang-ts",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Pure TypeScript Hindu Panchang calculations. Tithi, Nakshatra, Yoga, Karana, Vara, and more. Offline-first, React Native compatible.",
5
5
  "author": "Ishank",
6
6
  "license": "MIT",