{"_id":"@archon-js/adapter-date-fns","name":"@archon-js/adapter-date-fns","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@archon-js/adapter-date-fns","version":"0.1.0","description":"date-fns adapter for Archon","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"sideEffects":false,"dependencies":{"@archon-js/core":"^0.1.0"},"peerDependencies":{"date-fns":"^4.0.0"},"devDependencies":{"date-fns":"^4.1.0","tsup":"^8.5.0","typescript":"~5.8.2"},"repository":{"type":"git","url":"git+https://github.com/JoseJuniorr/archon.git","directory":"packages/adapters/date-fns"},"homepage":"https://github.com/JoseJuniorr/archon/tree/main/packages/adapters/date-fns","bugs":{"url":"https://github.com/JoseJuniorr/archon/issues"},"publishConfig":{"access":"public"},"scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --clean --sourcemap","dev":"tsup src/index.ts --format esm,cjs --dts --watch","typecheck":"tsc -p tsconfig.json --noEmit","lint":"eslint src --max-warnings=0","clean":"rimraf dist"},"_id":"@archon-js/adapter-date-fns@0.1.0","_integrity":"sha512-XIJuDwCSZx//5kZPTB+wHsJWKeCIkM+p+YOVxjIwc9TnymBVRbkyJt0/5qAVU7VEWYCc6R+UGKob0knRcLa/yg==","_resolved":"/tmp/75e41dc03b37f493c330ddf133efba7f/archon-js-adapter-date-fns-0.1.0.tgz","_from":"file:archon-js-adapter-date-fns-0.1.0.tgz","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-XIJuDwCSZx//5kZPTB+wHsJWKeCIkM+p+YOVxjIwc9TnymBVRbkyJt0/5qAVU7VEWYCc6R+UGKob0knRcLa/yg==","shasum":"1cdaa774541e5e72f781df769678a7a8fa11ec69","tarball":"https://registry.npmjs.org/@archon-js/adapter-date-fns/-/adapter-date-fns-0.1.0.tgz","fileCount":9,"unpackedSize":16145,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDuADMo+nBmdPqqsscIjxBErFbZpGyjClu55toauRhR5wIhANmZvYqSHozorIBF0QCWKDQpjykNxFztHe0OPW1hdQC3"}]},"_npmUser":{"name":"archon-js","email":"jjerrorama@gmail.com"},"directories":{},"maintainers":[{"name":"archon-js","email":"jjerrorama@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-date-fns_0.1.0_1785687497670_0.2613941493500722"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-02T16:18:17.544Z","0.1.0":"2026-08-02T16:18:17.814Z","modified":"2026-08-02T16:18:17.971Z"},"maintainers":[{"name":"archon-js","email":"jjerrorama@gmail.com"}],"description":"date-fns adapter for Archon","homepage":"https://github.com/JoseJuniorr/archon/tree/main/packages/adapters/date-fns","repository":{"type":"git","url":"git+https://github.com/JoseJuniorr/archon.git","directory":"packages/adapters/date-fns"},"bugs":{"url":"https://github.com/JoseJuniorr/archon/issues"},"license":"MIT","readme":"# @archon-js/adapter-date-fns\n\n[DateAdapter](https://github.com/archon/archon) implementation using [date-fns](https://date-fns.org/) v4.\n\n## Install\n\n```bash\npnpm add @archon-js/adapter-date-fns @archon-js/core date-fns\n```\n\n`date-fns` is a **peer dependency** (`^4`).\n\n## Usage\n\n```ts\nimport { createCalendarEngine } from '@archon-js/core';\nimport { createDateFnsAdapter } from '@archon-js/adapter-date-fns';\n\nconst adapter = createDateFnsAdapter();\n\nconst engine = createCalendarEngine({\n  adapter,\n  locale: 'pt-BR',\n  datePattern: 'dd/MM/yyyy',\n});\n```\n\n## DateAdapter contract\n\nImplements the full `DateAdapter` port from `@archon-js/core` using date-fns for date math, parsing, and formatting. Locale strings are mapped to date-fns locale objects (`en-US`, `pt-BR`, `de-DE`, etc.) with `en-US` as fallback.\n\n## When to use\n\nPrefer this adapter when you already depend on date-fns or need robust locale-aware parsing and formatting beyond what the native adapter provides.\n","readmeFilename":"README.md","_rev":"1-919acc076d9c30f5707cee83f77b4b90"}