{"_id":"@cantabile/date-helper","_rev":"12-356f403a75b8b38ecb63b9c526566972","name":"@cantabile/date-helper","dist-tags":{"latest":"1.4.2"},"versions":{"1.0.0":{"name":"@cantabile/date-helper","version":"1.0.0","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.0.0","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"01364c613816844a2110a6f339cae278e61da6eb","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.0.0.tgz","fileCount":16,"integrity":"sha512-WV1DUMvxHiNMvgbeYtIVCjxTBbI24IPJ7q17ouVQG325YW5cx4VMjSYE/ftVjyNH+lbqK7dh9RJ0vVcX2RX88A==","signatures":[{"sig":"MEUCIDCzDomqXQ/j9hKLAMntAQb6A7n/I3kUkQd1ViYVQH/zAiEAqEMRQQGGg0mZX/Jx5HveMJ27fXpCHjTjzCXmIKRLbtk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66621},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f3e16414eb4a030c4341fb1d833af81a1ed9eb50","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.0.0_1707389871597_0.2208495856507049","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@cantabile/date-helper","version":"1.0.1","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.0.1","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"6bccd6ddb46ec71b4c55f842951c81452c22ce01","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.0.1.tgz","fileCount":20,"integrity":"sha512-92zvApEcDx5zVdq29U2MT6q+gUC26tSLNhwC9nPucsQQwEUsuCKu3YsFIYWXE2et6hJGlybxmYVoOKy7/PQpAw==","signatures":[{"sig":"MEQCIHBJI//lkjrYaRJ+/03ROV7JQ+711WPGGkOgmp9WfDwwAiBP1CcGA8MR5ggax/zJlvwS4mzwkDt6ZVtPXlf/MvEDyg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83336},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"f3e16414eb4a030c4341fb1d833af81a1ed9eb50","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.0.1_1707390663652_0.33891999263021555","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@cantabile/date-helper","version":"1.1.1","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.1.1","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"c2fb3c38a2d5d3bd405e20079012ed7f4a2f51be","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.1.1.tgz","fileCount":20,"integrity":"sha512-GDsjo3G/sPs65Bg3W5YOJKGtRm3Z6oNaRq7hMY+wRmAOJBEKfZE4BZ7gbP9llcNJy5mEClExFBMod3TwXCB9/A==","signatures":[{"sig":"MEQCIF5g/d134P8yX7Y6qwlFkZxzjm5ooxpqNqni1BH2x1ouAiBYa0HBI5VRmJth2rcVGNwe7wOcDq+DGKYO7BCfWHt03w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83944},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"214be256e5262e6635b9ae7d8ed7dba49e711b5e","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.1.1_1707929754010_0.4554313616496488","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@cantabile/date-helper","version":"1.2.1","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.2.1","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"8c231bd18968b3a1e7dbf59cbd682c3c29ede6d3","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.2.1.tgz","fileCount":20,"integrity":"sha512-QnvZuAV4X1QhWdstAKNHIfHjLeZ+2xoJMs0XuR+CFleAcLj/GEn9tJpbfdG9TyzEayGPZDO5GvnIwsvGgUWrow==","signatures":[{"sig":"MEQCIACmig9uHbtQQ8welUCX6a1xvET+UHmp8qCTt8o/lV1FAiAUCIz6o74zICPv//1elkWvDOgxPFf4ikWuMmmB88gDEA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81903},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6d4992d2a9577cd199e1201efc7914d731610814","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.2.1_1708021184393_0.6407493640038153","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@cantabile/date-helper","version":"1.3.1","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.3.1","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"c13e3725e4ed8d99c0b48117fa4b142558165a7a","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.3.1.tgz","fileCount":20,"integrity":"sha512-PI/GGQ2smhKJQeg+nZDUk/SNXC8pZkU4Msfo2y8eEZoUa5eQIyDycbH+6LJkgiQA24vBRQt4hkNK002bjmC8BQ==","signatures":[{"sig":"MEQCICODqd+1A/pNg87O6lbpE+Qpckmyfg3ib0ZELYaRGpOmAiAj2/AiXqF+lgIHLGnql2GrquoC1So/9R0tRo6M+Ax7IA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82822},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"016f85820ade7849679bfc56f023ed0de947b957","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.3.1_1708541140601_0.26259348276822325","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@cantabile/date-helper","version":"1.3.2","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.3.2","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"23af044f6aaf0b57c502e2d0595c90d794541b87","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.3.2.tgz","fileCount":24,"integrity":"sha512-c0Iz6qCAyHhtAY6e8MzvKwZQkdayOI3ZD8nn17GkHtkFHDQ5JCRfqYZe0pSVx0dPMhAIBNaKmFS01JJbAPvzGQ==","signatures":[{"sig":"MEUCIQD7tWg1+kV28rHr8U2NIgHBolCHw7VTccujFkvCvstTIwIgW6gw8e9r0gXAiMK9zlDxa+iFoK4XYO2NIm1vTneAIFg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85142},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"2002e9549924d5cab7772eef9876fb3be8ea46bd","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.3.2_1710082361418_0.8037510872012201","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"@cantabile/date-helper","version":"1.3.3","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.3.3","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"77c9964be0a7d1f348bcce2fd72bcf94f9d523f5","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.3.3.tgz","fileCount":24,"integrity":"sha512-g2mESPySDeRKzagDCxnNFhSouVazUtUWvhErvqZg4On8GtJs5gi2ROYsGMFJi+V6S41rTTfjx/FfXTbnMLrp0A==","signatures":[{"sig":"MEUCIQDrTPp47sD1muwz5JQAehDQuHY4PO2dc9tNu99uiujkpAIgF/frVjmH0q+peST1kDC9lWTryG71AThI54ngIcn2sVo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85248},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"211ac6dd7f3d3cfb95d53df97e51e73fd84616d8","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.3.3_1710947717255_0.673542344444436","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"@cantabile/date-helper","version":"1.3.4","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.3.4","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"3c2332e1004ea1c71252ddb1ebe862dacc446092","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.3.4.tgz","fileCount":24,"integrity":"sha512-JpbWEMRgb5KUvbwHAzElFt6g+ektqvUszhVF2Wl2Up1iXanuQnDDnVpxMpTUCm6vGub0kIRpopHGSlb+LGLPyw==","signatures":[{"sig":"MEUCIH/wYjIXQ4mSJBmAE+hrZPUceu1BLNZk52zCWwrTNYXyAiEAik+NNRaLxN711jFzFgT9NSnjF6Z6NJ7CwQDJ+j9qBgU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85468},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"200f7d1aa638c21efc1b20ac1834e91420403d3b","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.3.4_1718270130049_0.49386239403887133","host":"s3://npm-registry-packages"}},"1.3.5":{"name":"@cantabile/date-helper","version":"1.3.5","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.3.5","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"aee271b90319939f76b3502a7ae1cfa292cfc197","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.3.5.tgz","fileCount":24,"integrity":"sha512-J2/BJAUwufsr0iWxTPCbWtmVfURMfa7dJ9qN1K1kE00FioOh8DzBOS7XmwzHkb4JR2X3SWDqZB6hxShUWX0WKQ==","signatures":[{"sig":"MEYCIQDugSURw7g7D0rYUtO0efT3TJga713u8KztXgDiyZXWXgIhAMkfD073Jy6pR0/As1tmJXl8oreWPswZkA5KC72Zpy+9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86911},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"200f7d1aa638c21efc1b20ac1834e91420403d3b","scripts":{"test":"jest","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"9.5.0","description":"Helper class for date handling","directories":{},"_nodeVersion":"18.15.0","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.3.5_1718712235343_0.2890576562320428","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"@cantabile/date-helper","version":"1.4.0","author":"Wallop Opasakhun (https://github.com/champclarinet)","license":"ISC","_id":"@cantabile/date-helper@1.4.0","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"3fd372feff03c10825f02bd63b4fef63592d1667","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.4.0.tgz","fileCount":14,"integrity":"sha512-ngqE1xEWYi89gU9c/86/5/xNsXWmt22FPyOAvwJEnErCMmN25BNK/ygHkrypxgk6s81/B8fW2QTgeEj4s380UA==","signatures":[{"sig":"MEYCIQDMblcZi3zkyCf1T4NAJ7n85sOOPNWvKw/II0InMx3zRQIhAJdXfviY9UYYRImfW2RGKybv4QmaQe6+IszNqP5kLFlA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":499682},"main":"dist/index.js","types":"dist/index.d.ts","config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"./cz.config.cjs"}},"module":"dist/index.mjs","shasum":"3fd372feff03c10825f02bd63b4fef63592d1667","engines":{"bun":">=1.3.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"bun test","build":"bun run clean && bun run build:esm && bun run build:cjs && bun run build:types","clean":"rm -rf dist","commit":"cz","format":"prettier -w .","build:cjs":"bun build src/index.ts --outdir dist --target=node --format=cjs --sourcemap --outfile=index.cjs","build:esm":"bun build src/index.ts --outdir dist --target=node --format=esm --sourcemap --outfile=index.mjs","build:types":"tsc -p tsconfig.build.json","prepublishOnly":"bun run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_integrity":"sha512-ngqE1xEWYi89gU9c/86/5/xNsXWmt22FPyOAvwJEnErCMmN25BNK/ygHkrypxgk6s81/B8fW2QTgeEj4s380UA==","_npmVersion":"10.8.3","description":"Helper class for date handling","directories":{},"lint-staged":{"*.{js,ts,jsx,tsx,json,css,md}":["prettier --write","git add"]},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.0","devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","ts-jest":"^29.1.2","prettier":"^3.6.2","bun-types":"^1.3.0","commitizen":"^4.3.1","commitlint":"^20.1.0","typescript":"^5.3.3","@types/jest":"^29.5.12","lint-staged":"^16.2.4","cz-customizable":"^7.5.1","commitlint-config-gitmoji":"^2.3.1","prettier-plugin-tailwindcss":"^0.7.0","@trivago/prettier-plugin-sort-imports":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.4.0_1760686941378_0.15642992773917586","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"@cantabile/date-helper","version":"1.4.1","author":{"url":"https://github.com/champclarinet","name":"Wallop Opasakhun"},"license":"ISC","_id":"@cantabile/date-helper@1.4.1","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"homepage":"https://github.com/ChampClarinet/date-helper","dist":{"shasum":"fe3cf540ae70ccb53e39fa6a625b1f2fa1cb0988","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.4.1.tgz","fileCount":14,"integrity":"sha512-AKjLubv0VHr9NjvuHkJGSPdlDKGYVrCpFvjF0sss+AmBgHut3UI9wGvQ9rSUFGmtdHXpodfLrfZGoPkHUmYvvQ==","signatures":[{"sig":"MEYCIQCzV6C4XCUrAkJuWTjiPjnSeQ1TrvxVgRbhz4T2thRXBQIhAMXR6eumwhB2svKFVH5alD6WgfPrjmNIeNLQu6S2KXkf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":498967},"main":"dist/index.js","types":"dist/index.d.ts","config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"./cz.config.cjs"}},"module":"dist/index.js","engines":{"bun":">=1.3.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"053f5ba4a4e01485a5de036a11978762b62a16df","scripts":{"test":"bun test","build":"bun run clean && bun build src/index.ts --outdir dist --target=node --format=esm --sourcemap --outfile=index.js && tsc -p tsconfig.build.json","clean":"rm -rf dist","commit":"cz","format":"prettier -w .","prepublishOnly":"bun run build"},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"_npmVersion":"10.9.3","description":"Helper class for date handling","directories":{},"lint-staged":{"*.{js,ts,jsx,tsx,json,css,md}":["prettier --write","git add"]},"sideEffects":false,"_nodeVersion":"22.19.0","dependencies":{"moment":"^2.30.1"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.0","devDependencies":{"husky":"^9.1.7","eslint":"^9.25.1","globals":"^16.0.0","prettier":"^3.6.2","bun-types":"^1.3.0","@eslint/js":"^9.37.0","commitizen":"^4.3.1","commitlint":"^20.1.0","typescript":"^5.3.3","lint-staged":"^16.2.4","cz-customizable":"^7.5.1","typescript-eslint":"^8.31.0","commitlint-config-gitmoji":"^2.3.1","eslint-plugin-react-hooks":"^5.2.0","@trivago/prettier-plugin-sort-imports":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/date-helper_1.4.1_1760707478144_0.9353936843088164","host":"s3://npm-registry-packages-npm-production"}},"1.4.2":{"name":"@cantabile/date-helper","version":"1.4.2","description":"Helper class for date handling","homepage":"https://github.com/ChampClarinet/date-helper","author":{"name":"Wallop Opasakhun","url":"https://github.com/champclarinet"},"main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","import":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"sideEffects":false,"packageManager":"bun@1.3.0","scripts":{"clean":"rm -rf dist","build":"bun run clean && tsc -p tsconfig.build.json","test":"bun test","prepublishOnly":"bun run build","commit":"cz","format":"prettier -w ."},"license":"ISC","dependencies":{"moment":"^2.30.1"},"devDependencies":{"@eslint/js":"^9.37.0","@trivago/prettier-plugin-sort-imports":"^5.2.2","bun-types":"^1.3.0","commitizen":"^4.3.1","commitlint":"^20.1.0","commitlint-config-gitmoji":"^2.3.1","cz-customizable":"^7.5.1","eslint":"^9.25.1","eslint-plugin-react-hooks":"^5.2.0","globals":"^16.0.0","husky":"^9.1.7","lint-staged":"^16.2.4","prettier":"^3.6.2","typescript":"^5.3.3","typescript-eslint":"^8.31.0"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"./cz.config.cjs"}},"lint-staged":{"*.{js,ts,jsx,tsx,json,css,md}":["prettier --write","git add"]},"engines":{"node":">=18","bun":">=1.3.0"},"_id":"@cantabile/date-helper@1.4.2","gitHead":"9dbaf01802305e2cfc8982dbe58b066859a40195","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-YOWtHhZhnZGN/L58Yh6o01n1gCo+9gJsiB1Mr8VAf1SbqnBun/0Y8jb41bwvesd0GgG881YOq/GcAQtirL6srg==","shasum":"d42b6d8d1bc3b8360be7bf38dace6e19a5640654","tarball":"https://registry.npmjs.org/@cantabile/date-helper/-/date-helper-1.4.2.tgz","fileCount":17,"unpackedSize":67255,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCu4XZmZMJ0iQiIXCxo/sUbo1OT9SHt7mSyqdwg2gSR7wIhAJGLXKQzo/UATsuXPWfasQ2gBUkKLDHKbUSmmMwkL5M2"}]},"_npmUser":{"name":"cantabile","email":"champbassist159@gmail.com"},"directories":{},"maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/date-helper_1.4.2_1760708341011_0.5765530445856837"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-08T10:57:51.517Z","modified":"2025-10-17T13:39:01.387Z","1.0.0":"2024-02-08T10:57:51.774Z","1.0.1":"2024-02-08T11:11:03.850Z","1.1.1":"2024-02-14T16:55:54.161Z","1.2.1":"2024-02-15T18:19:44.532Z","1.3.1":"2024-02-21T18:45:40.873Z","1.3.2":"2024-03-10T14:52:41.594Z","1.3.3":"2024-03-20T15:15:17.423Z","1.3.4":"2024-06-13T09:15:30.186Z","1.3.5":"2024-06-18T12:03:55.510Z","1.4.0":"2025-10-17T07:42:21.583Z","1.4.1":"2025-10-17T13:24:38.347Z","1.4.2":"2025-10-17T13:39:01.199Z"},"author":{"name":"Wallop Opasakhun","url":"https://github.com/champclarinet"},"license":"ISC","homepage":"https://github.com/ChampClarinet/date-helper","description":"Helper class for date handling","maintainers":[{"name":"cantabile","email":"champbassist159@gmail.com"}],"readme":"# @cantabile/date-helper\n\n[![npm version](https://badge.fury.io/js/%40cantabile%2Fdate-helper.svg)](https://badge.fury.io/js/%40cantabile%2Fdate-helper)\n[![License: ISC](https://img.shields.io/badge/License-ISC-yellow.svg)](https://opensource.org/licenses/ISC)\n\n**DateHelper** is a lightweight TypeScript library that simplifies date and time handling, including:\n\n- Buddhist calendar (B.E.) conversion\n- English/Thai localization\n- Human-readable display utilities\n- Time delta, tuple-based date composition, and more\n\n---\n\n## 📦 Installation\n\nInstall using your preferred package manager:\n\n```bash\n# with npm\nnpm install @cantabile/date-helper\n\n# with bun\nbun add @cantabile/date-helper\n```\n\n---\n\n## 🧩 Basic Usage\n\n```ts\nimport DateHelper from \"@cantabile/date-helper\";\n\n// Create a new instance\nconst dh = new DateHelper(\"2024-03-01T00:00:00\");\n\n// Display date in AD\nconsole.log(dh.getDisplayDate()); // \"01 March 2024\"\n\n// Display in Buddhist Era (B.E.) with Thai language\nconst thai = new DateHelper(\"2024-03-01\", { lang: \"th\", useBD: true });\nconsole.log(thai.getDisplayDate()); // \"01 มีนาคม 2567\"\n```\n\n---\n\n## ⚙️ Configuration\n\n| Option            | Type           | Default | Description                                   |\n| ----------------- | -------------- | ------- | --------------------------------------------- |\n| `lang`            | `\"en\" \\| \"th\"` | `\"en\"`  | Language for month and weekday names          |\n| `useShortText`    | `boolean`      | `false` | Use abbreviated month names (`Jan`, `Feb`, …) |\n| `useBD`           | `boolean`      | `false` | Use Buddhist Era (B.E.) instead of Gregorian  |\n| `use12HourFormat` | `boolean`      | `false` | Display time in `12-hour` (AM/PM) format      |\n| `showSeconds`     | `boolean`      | `false` | Display seconds in time output                |\n| `isUTC`           | `boolean`      | `false` | Treat input date as UTC time                  |\n\n---\n\n## 🔧 API Highlights\n\n### Static methods\n\n- DateHelper.now(config?) → Create instance for current date/time\n\n- DateHelper.fromDateTupleAndTime(tuple, time?)\n\n- DateHelper.isSameDay(d1, d2)\n\n- DateHelper.timeStringToTime(\"13:45\")\n\n- DateHelper.deltaMinutes(d1, d2)\n\n- DateHelper.getInstanceWithOffset(date, offset)\n\n- DateHelper.findPreviousMonthYear(month, year)\n\n- DateHelper.findNextMonthYear(month, year)\n\n- DateHelper.getLanguageConstants() → access MONTHS, WEEKDAYS, timeAgo etc.\n\n### Instance Methods\n\n- getDisplayDate() → \"01 March 2024\"\n\n- getDisplayTime() → \"14:30\"\n\n- getDisplayDateAndTime() → \"01 March 2024 14:30\"\n\n- getTimeRelativeToNow() → \"3 minutes ago\"\n\n- toISODate() → \"2024-03-01\"\n\n- toMoment() → returns a Moment.js instance\n\n---\n\n## 🧪 Testing\n\nThis package uses Bun for testing:\n\n```bash\nbun test\n```\n\nExample test:\n\n```ts\nimport DateHelper from \"@cantabile/date-helper\";\nimport { describe, expect, it } from \"bun:test\";\n\ndescribe(\"DateHelper\", () => {\n  it(\"should display correctly in B.E. (Thai)\", () => {\n    const dh = new DateHelper(\"2024-03-01\", { lang: \"th\", useBD: true });\n    expect(dh.getDisplayDate()).toBe(\"01 มีนาคม 2567\");\n  });\n});\n```\n\n---\n\n## 🪄 Build\n\n```bash\nbun run build\n```\n\nOutputs:\n\n```\ndist/\n ├─ index.mjs     (ESM)\n ├─ index.cjs     (CommonJS)\n ├─ index.d.ts    (TypeScript types)\n └─ *.map         (Source maps)\n```\n\n---\n\n## 📜 License\n\nLicensed under the ISC © [Wallop Opasakhun (ChampClarinet)](https://github.com/champclarinet)\n\n---\n\n## 💖 Support\n\nIf this library helps your work, you can support the maintainer here:\n\n[![Buy Me a Coffee](https://img.shields.io/badge/☕️-Buy%20Me%20a%20Coffee-orange)](https://buymeacoffee.com/champclarinet)\n\nEvery cup fuels more open-source love and cleaner TypeScript for everyone! 💫\n","readmeFilename":"README.md"}