mirror of
https://github.com/acamarata/date-fns-hijri.git
synced 2026-07-01 11:14:26 +00:00
Functional Hijri date utility library in date-fns style. 17 exported functions: toHijriDate, fromHijriDate, isValidHijriDate, getHijriYear, getHijriMonth, getHijriDay, getDaysInHijriMonth, getHijriMonthName, getHijriWeekdayName, formatHijriDate, addHijriMonths, addHijriYears, startOfHijriMonth, endOfHijriMonth, isSameHijriMonth, isSameHijriYear, getHijriQuarter. All delegate to hijri-core. UTC-midnight-to-local-noon correction applied in arithmetic functions to avoid timezone boundary drift. 55 ESM + 10 CJS tests passing. Dual CJS/ESM build.
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"name": "date-fns-hijri",
|
|
"version": "1.0.0",
|
|
"description": "date-fns-style utility functions for Hijri calendar operations. Wraps hijri-core with a functional API for converting, formatting, and validating Hijri dates.",
|
|
"author": "Aric Camarata",
|
|
"license": "MIT",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" },
|
|
"require": { "types": "./dist/index.d.ts", "default": "./dist/index.cjs" }
|
|
}
|
|
},
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist/index.cjs",
|
|
"dist/index.mjs",
|
|
"dist/index.d.ts",
|
|
"dist/index.d.mts",
|
|
"README.md",
|
|
"CHANGELOG.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": { "node": ">=20" },
|
|
"packageManager": "pnpm@10.30.1",
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"typecheck": "tsc --noEmit",
|
|
"pretest": "tsup",
|
|
"test": "node test.mjs && node test-cjs.cjs",
|
|
"prepublishOnly": "tsup"
|
|
},
|
|
"keywords": [
|
|
"date-fns",
|
|
"hijri",
|
|
"islamic",
|
|
"calendar",
|
|
"umm-al-qura",
|
|
"fcna",
|
|
"gregorian",
|
|
"converter",
|
|
"typescript",
|
|
"functional"
|
|
],
|
|
"peerDependencies": {
|
|
"hijri-core": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"hijri-core": "file:../hijri-core",
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.5.0"
|
|
},
|
|
"publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
|
|
"repository": { "type": "git", "url": "git+https://github.com/acamarata/date-fns-hijri.git" },
|
|
"homepage": "https://github.com/acamarata/date-fns-hijri#readme",
|
|
"bugs": { "url": "https://github.com/acamarata/date-fns-hijri/issues" }
|
|
}
|