{"_id":"@archon-js/adapter-native","name":"@archon-js/adapter-native","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@archon-js/adapter-native","version":"0.1.0","description":"Native Date 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"},"devDependencies":{"tsup":"^8.5.0","typescript":"~5.8.2","vitest":"^3.2.4"},"repository":{"type":"git","url":"git+https://github.com/JoseJuniorr/archon.git","directory":"packages/adapters/native"},"homepage":"https://github.com/JoseJuniorr/archon/tree/main/packages/adapters/native","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","test":"vitest run","test:watch":"vitest","typecheck":"tsc -p tsconfig.json --noEmit","lint":"eslint src test --max-warnings=0","clean":"rimraf dist"},"_id":"@archon-js/adapter-native@0.1.0","_integrity":"sha512-yhBMQOVPUKCxjoxCnW5XNrnqas6vTTLD6upiJniocbFkz9O/7n8nEGnlfwdeIql0SqyPn2p8qOey6j7SCw7YOg==","_resolved":"/tmp/02aa5dc3e848d54305730bcbd6cdfeba/archon-js-adapter-native-0.1.0.tgz","_from":"file:archon-js-adapter-native-0.1.0.tgz","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-yhBMQOVPUKCxjoxCnW5XNrnqas6vTTLD6upiJniocbFkz9O/7n8nEGnlfwdeIql0SqyPn2p8qOey6j7SCw7YOg==","shasum":"f2282aca7bafe9188955596bd5bccbd06d519380","tarball":"https://registry.npmjs.org/@archon-js/adapter-native/-/adapter-native-0.1.0.tgz","fileCount":9,"unpackedSize":26427,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHqOSY9gVYULHgE9Q5nyLehkxmDFIXVlJ5NFaJRWi4m+AiAu56Tady7kZePH2j0b7VOnYJKcYZYUjw8VnpThyMXLgg=="}]},"_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-native_0.1.0_1785687494713_0.42104393239381066"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-02T16:18:14.529Z","0.1.0":"2026-08-02T16:18:14.857Z","modified":"2026-08-02T16:18:15.047Z"},"maintainers":[{"name":"archon-js","email":"jjerrorama@gmail.com"}],"description":"Native Date adapter for Archon","homepage":"https://github.com/JoseJuniorr/archon/tree/main/packages/adapters/native","repository":{"type":"git","url":"git+https://github.com/JoseJuniorr/archon.git","directory":"packages/adapters/native"},"bugs":{"url":"https://github.com/JoseJuniorr/archon/issues"},"license":"MIT","readme":"# @archon-js/adapter-native\n\nDefault [DateAdapter](https://github.com/archon/archon) implementation using the native JavaScript `Date` object. No external date library required.\n\n## Install\n\n```bash\npnpm add @archon-js/adapter-native @archon-js/core\n```\n\n## Usage\n\n```ts\nimport { createCalendarEngine } from '@archon-js/core';\nimport { createNativeDateAdapter } from '@archon-js/adapter-native';\n\nconst adapter = createNativeDateAdapter();\n\nconst engine = createCalendarEngine({\n  adapter,\n  locale: 'pt-BR',\n  datePattern: 'dd/MM/yyyy',\n});\n```\n\n## DateAdapter contract\n\nThe adapter implements the `DateAdapter` port from `@archon-js/core`:\n\n- **Opaque dates** — `ArchonDate` values are native `Date` instances.\n- **Construction** — `create`, `today`, `addMonths`, `addDays`, `startOfMonth`, `endOfMonth`.\n- **Comparison** — `isSameDay`, `isBefore`, `isAfter`, `isValid`.\n- **Parsing / formatting** — supports common patterns such as `dd/MM/yyyy`, `MM/dd/yyyy`, and `dd.MM.yyyy`.\n\n## When to use\n\nUse this adapter for zero-dependency setups, Node.js scripts, or when bundle size matters. For richer locale and timezone support, prefer `@archon-js/adapter-date-fns` or other library adapters.\n","readmeFilename":"README.md","_rev":"1-3970b1c1b11ae670f4682ad0220b83e1"}