{"_id":"@bepalo/time","_rev":"14-f630fdf07320937e583f69f5405a771b","name":"@bepalo/time","dist-tags":{"latest":"1.2.11"},"versions":{"1.2.5":{"name":"@bepalo/time","version":"1.2.5","keywords":["time","duration","express","fluent","utility","timestamp"],"author":{"name":"Natnael Eshetu"},"license":"MIT","_id":"@bepalo/time@1.2.5","maintainers":[{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"}],"dist":{"shasum":"8f8640da388d44cdffe09ccb8706038a9710c1ab","tarball":"https://registry.npmjs.org/@bepalo/time/-/time-1.2.5.tgz","fileCount":15,"integrity":"sha512-0xljLRTt7PX3vtUwT7hjT7Ksj58Fkr0gO7bcN3qOEJNpmu6yg6Hrapid8pKw15O/w5CfzKwolm9K3bDV4WRRvw==","signatures":[{"sig":"MEUCIA2y5K3d4jAI81uvC9uSOTQMfRXSQWIeQcyT4lBENK8wAiEA+3z+eIXoxGP0ZrOHNmiIbrJ86BA7E7vsUzeZhCAG+0s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88905},"main":"./dist/cjs/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/cjs/index.js"},"gitHead":"a460db8ab1c454e4de50216b738730e2aa57a803","scripts":{"test":"vitest","build":"npm run build:esm && npm run build:cjs","prepare":"npm run build","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json"},"_npmUser":{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"},"_npmVersion":"10.5.0","description":"Elegant and fluent time expression utility library like `exp: Time.in(7).days.FromNow`","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1","devDependencies":{"vitest":"^1.0.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/time_1.2.5_1750072086684_0.12740286188533956","host":"s3://npm-registry-packages-npm-production"}},"1.2.6":{"name":"@bepalo/time","version":"1.2.6","keywords":["time","timestamp","duration","express","utility","jsonwebtoken"],"author":{"name":"Natnael Eshetu"},"license":"MIT","_id":"@bepalo/time@1.2.6","maintainers":[{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"}],"homepage":"https://github.com/bepalo/time#readme","bugs":{"url":"https://github.com/bepalo/time/issues"},"dist":{"shasum":"c7632394cea0cda6a7255c3fbf6de654f5ca7e48","tarball":"https://registry.npmjs.org/@bepalo/time/-/time-1.2.6.tgz","fileCount":20,"integrity":"sha512-jzAtnEBWsiXJ/A7ES6qhgjH4GCZGfX0uV8gfgPbBgQQBltgWHyAUzZ18CvxmtxGaz3/SA4VvSAmTrZOgg8+5Yw==","signatures":[{"sig":"MEQCIDnrZfeaiSYrY3JvNCE8qe+HD84w2/NkwBFA2Fv827aUAiAZmcx7+mYpKkYEeLN2sip2n/ICzcCySa6sf7GgxK0aMQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bepalo%2ftime@1.2.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":132844},"main":"./dist/cjs/index.js","_from":"file:bepalo-time-1.2.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/cjs/index.js"},"scripts":{"test":"vitest --reporter=dot","build":"npm run build:esm && npm run build:cjs","test:ci":"vitest run --reporter=vitest-markdown-reporter --outputFile=test-result.md","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json"},"_npmUser":{"name":"nati-esh-nez","actor":{"name":"nati-esh-nez","type":"user","email":"the.defalt8@gmail.com"},"email":"the.defalt8@gmail.com"},"_resolved":"/tmp/5079563ec0c58a9faa141a8c7bd18e9b/bepalo-time-1.2.6.tgz","_integrity":"sha512-jzAtnEBWsiXJ/A7ES6qhgjH4GCZGfX0uV8gfgPbBgQQBltgWHyAUzZ18CvxmtxGaz3/SA4VvSAmTrZOgg8+5Yw==","repository":{"url":"git+https://github.com/bepalo/time.git","type":"git"},"_npmVersion":"10.9.2","description":"A fluent time expression utility library to use like `Time.in(1).Week`","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.0.0","typescript":"^5.8.3","vitest-markdown-reporter":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/time_1.2.6_1751636593404_0.3473683423600564","host":"s3://npm-registry-packages-npm-production"}},"1.2.7":{"name":"@bepalo/time","version":"1.2.7","keywords":["time","timestamp","duration","fluent","express","expression","time expression","utility","jsonwebtoken"],"author":{"name":"Natnael Eshetu"},"license":"MIT","_id":"@bepalo/time@1.2.7","maintainers":[{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"}],"homepage":"https://github.com/bepalo/time#readme","bugs":{"url":"https://github.com/bepalo/time/issues"},"dist":{"shasum":"6967e7f7ad11839dfd9f6847cbcb777aae03ecc7","tarball":"https://registry.npmjs.org/@bepalo/time/-/time-1.2.7.tgz","fileCount":11,"integrity":"sha512-EVBkD2q7zuF2Kh52+UeCFQY5Pj8S7mNZaTPx9wtwNsxOCP46ZNY2BBKbGzy6ywvyg3+jKPGqsXl/Yp2lJgeC8g==","signatures":[{"sig":"MEYCIQDFQVeeteJrduEYAtpELYOdM9P/Q9xwKijw8xAD9jXywQIhANy1TDTmfYLCVIBHJEMSoyK3KZkQ0geGijEoi0QVMGWm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bepalo%2ftime@1.2.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":78508},"main":"./dist/cjs/index.js","_from":"file:bepalo-time-1.2.7.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/cjs/index.js"},"scripts":{"test":"vitest --reporter=dot","build":"pnpm run build:esm && pnpm run build:cjs","test:ci":"vitest run --reporter=vitest-markdown-reporter --outputFile=test-result.md","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","build:watch":"tsc --watch --project tsconfig.esm.json & tsc --watch --project tsconfig.cjs.json"},"_npmUser":{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"},"_resolved":"/tmp/06f2b13c5cced7dd8f7fcbf572b1d24f/bepalo-time-1.2.7.tgz","_integrity":"sha512-EVBkD2q7zuF2Kh52+UeCFQY5Pj8S7mNZaTPx9wtwNsxOCP46ZNY2BBKbGzy6ywvyg3+jKPGqsXl/Yp2lJgeC8g==","repository":{"url":"git+https://github.com/bepalo/time.git","type":"git"},"_npmVersion":"10.9.2","description":"A fluent time expression utility library to use like `Time.in(1).Week`","directories":{},"_nodeVersion":"22.17.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.0.0","typescript":"^5.8.3","vitest-markdown-reporter":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/time_1.2.7_1752882479982_0.718608283092919","host":"s3://npm-registry-packages-npm-production"}},"1.2.8":{"name":"@bepalo/time","version":"1.2.8","keywords":["time","timestamp","duration","fluent","express","expression","time expression","utility","jsonwebtoken"],"author":{"name":"Natnael Eshetu"},"license":"MIT","_id":"@bepalo/time@1.2.8","maintainers":[{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"}],"homepage":"https://github.com/bepalo/time#readme","bugs":{"url":"https://github.com/bepalo/time/issues"},"dist":{"shasum":"f6e98bfa84ede031badc545c20e1a9f75b30eaf1","tarball":"https://registry.npmjs.org/@bepalo/time/-/time-1.2.8.tgz","fileCount":11,"integrity":"sha512-3QInPrtDBUp6O0o8qYnRXy0wlNk6fXMFmLCmRLNS8AksXsKsWjJwErCyd3EGc5LmBbr8YiiruPtsF2+xkdNRxw==","signatures":[{"sig":"MEQCIBQQo0uC1uyr7d4q68G8n2+OIew6lnoroMr7GIfb7jogAiB85m5xsxpxbszwPU9mQzGAJOMTpp84xJ+uKgnwEWWC/g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bepalo%2ftime@1.2.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79494},"main":"./dist/cjs/index.js","_from":"file:bepalo-time-1.2.8.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/cjs/index.js"},"scripts":{"test":"vitest --reporter=dot","build":"pnpm run build:esm && pnpm run build:cjs","test:ci":"vitest run --reporter=vitest-markdown-reporter --outputFile=test-result.md","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","build:watch":"tsc --watch --project tsconfig.esm.json & tsc --watch --project tsconfig.cjs.json"},"_npmUser":{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"},"_resolved":"/tmp/07ec975ae9154a29aabef9c413c0190c/bepalo-time-1.2.8.tgz","_integrity":"sha512-3QInPrtDBUp6O0o8qYnRXy0wlNk6fXMFmLCmRLNS8AksXsKsWjJwErCyd3EGc5LmBbr8YiiruPtsF2+xkdNRxw==","repository":{"url":"git+https://github.com/bepalo/time.git","type":"git"},"_npmVersion":"10.9.2","description":"A fluent time expression utility library to use like `Time.in(1).Week`","directories":{},"_nodeVersion":"22.17.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.0.0","typescript":"^5.8.3","vitest-markdown-reporter":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/time_1.2.8_1752885916586_0.40186093844103987","host":"s3://npm-registry-packages-npm-production"}},"1.2.9":{"name":"@bepalo/time","version":"1.2.9","keywords":["time","timestamp","duration","fluent","express","expression","time expression","utility","jsonwebtoken"],"author":{"name":"Natnael Eshetu"},"license":"MIT","_id":"@bepalo/time@1.2.9","maintainers":[{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"}],"homepage":"https://github.com/bepalo/time#readme","bugs":{"url":"https://github.com/bepalo/time/issues"},"dist":{"shasum":"5f13c88924d88f502b5d97792a80a0273d422453","tarball":"https://registry.npmjs.org/@bepalo/time/-/time-1.2.9.tgz","fileCount":11,"integrity":"sha512-Tb+cKcHaxvl/DTrx4L96sNcGiksrgG+gT4AeRq8cniThKwCPAp6ms2IGrYBXwzS33RjmNWo43oJcyivQV7cK6A==","signatures":[{"sig":"MEQCIFe3kgozINwE8Ogddgg6lqZcah02GCdSsf8dJC0P5EGBAiB6WDPO6x0a9dSzWX8oxrw8mHTkYdzV2SURSm94JEeC8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bepalo%2ftime@1.2.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79494},"main":"./dist/cjs/index.js","_from":"file:bepalo-time-1.2.9.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/cjs/index.js"},"scripts":{"test":"vitest --reporter=dot","build":"pnpm run build:esm && pnpm run build:cjs","test:ci":"vitest run --reporter=vitest-markdown-reporter --outputFile=test-result.md","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","build:watch":"tsc --watch --project tsconfig.esm.json & tsc --watch --project tsconfig.cjs.json"},"_npmUser":{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"},"_resolved":"/tmp/1787137d38a8dcd55ffe801cac375c9f/bepalo-time-1.2.9.tgz","_integrity":"sha512-Tb+cKcHaxvl/DTrx4L96sNcGiksrgG+gT4AeRq8cniThKwCPAp6ms2IGrYBXwzS33RjmNWo43oJcyivQV7cK6A==","repository":{"url":"git+https://github.com/bepalo/time.git","type":"git"},"_npmVersion":"10.9.2","description":"A fluent time expression utility library to use like `Time.in(1).Week`","directories":{},"_nodeVersion":"22.17.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.0.0","typescript":"^5.8.3","vitest-markdown-reporter":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/time_1.2.9_1752886193514_0.5317897397562716","host":"s3://npm-registry-packages-npm-production"}},"1.2.11":{"name":"@bepalo/time","version":"1.2.11","description":"A fluent time expression utility library to use like `Time.in(1).Week`","author":{"name":"Natnael Eshetu"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bepalo/time.git"},"homepage":"https://github.com/bepalo/time#readme","exports":{"import":"./dist/index.js","require":"./dist/cjs/index.js"},"main":"./dist/cjs/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","keywords":["time","timestamp","duration","fluent","express","expression","time expression","utility","jsonwebtoken"],"devDependencies":{"typescript":"^5.8.3","vitest":"^1.0.0","vitest-markdown-reporter":"^0.1.2"},"scripts":{"build:esm":"tsc --project tsconfig.esm.json","build:cjs":"tsc --project tsconfig.cjs.json","build":"pnpm run build:esm && pnpm run build:cjs","build:watch":"tsc --watch --project tsconfig.esm.json & tsc --watch --project tsconfig.cjs.json","test":"vitest --reporter=dot","test:ci":"vitest run --reporter=vitest-markdown-reporter --outputFile=test-result.md"},"_id":"@bepalo/time@1.2.11","bugs":{"url":"https://github.com/bepalo/time/issues"},"_integrity":"sha512-A6a4gh3vScUK0AyUS9mTdRHgEJvU7jElLgI8URFqlOQvH48ZTesIKy2rJ5cd3j5Cp72jzvMZQhGy9EaqH7OM5g==","_resolved":"/tmp/7b2e56cc0495c1f7e1dd3dbd60f4d976/bepalo-time-1.2.11.tgz","_from":"file:bepalo-time-1.2.11.tgz","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-A6a4gh3vScUK0AyUS9mTdRHgEJvU7jElLgI8URFqlOQvH48ZTesIKy2rJ5cd3j5Cp72jzvMZQhGy9EaqH7OM5g==","shasum":"5976338fb5368d2bce1b117449033a3530d2c979","tarball":"https://registry.npmjs.org/@bepalo/time/-/time-1.2.11.tgz","fileCount":11,"unpackedSize":79237,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bepalo%2ftime@1.2.11","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDyrOBvX04yY1mXcIVi7yxxXBR8MzcjoFnBEmTsTez84gIgJWC6+MJL94xlqKyCC7gBKX3ReU+HjKNn8EIwRj9O3rs="}]},"_npmUser":{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"},"directories":{},"maintainers":[{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/time_1.2.11_1753178060114_0.8024225931456108"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-16T09:16:41.635Z","modified":"2025-07-22T09:54:20.662Z","1.2.1":"2025-06-16T09:16:41.926Z","1.2.2":"2025-06-16T09:28:08.632Z","1.2.3":"2025-06-16T10:38:28.690Z","1.2.4":"2025-06-16T10:47:59.918Z","1.2.5":"2025-06-16T11:08:06.853Z","1.2.6":"2025-07-04T13:43:13.587Z","1.2.7":"2025-07-18T23:48:00.151Z","1.2.8":"2025-07-19T00:45:16.782Z","1.2.9":"2025-07-19T00:49:53.741Z","1.2.11":"2025-07-22T09:54:20.276Z"},"bugs":{"url":"https://github.com/bepalo/time/issues"},"author":{"name":"Natnael Eshetu"},"license":"MIT","homepage":"https://github.com/bepalo/time#readme","keywords":["time","timestamp","duration","fluent","express","expression","time expression","utility","jsonwebtoken"],"repository":{"type":"git","url":"git+https://github.com/bepalo/time.git"},"description":"A fluent time expression utility library to use like `Time.in(1).Week`","maintainers":[{"name":"nati-esh-nez","email":"the.defalt8@gmail.com"}],"readme":"# 🏆 @bepalo/time\n\n[![npm version](https://img.shields.io/npm/v/@bepalo/time.svg)](https://www.npmjs.com/package/@bepalo/time)\n[![jsr](https://img.shields.io/badge/jsr-%40bepalo%2Ftime-blue?logo=deno&label=jsr)](https://jsr.io/@bepalo/time)\n[![github](https://img.shields.io/badge/github-bepalo%2Ftime-181717?logo=github)](https://github.com/bepalo/time)\n[![tests](https://img.shields.io/github/actions/workflow/status/bepalo/time/testing.yaml?label=tests)](https://github.com/bepalo/time/actions/workflows/testing.yaml.yml)\n[![CI](https://img.shields.io/github/actions/workflow/status/bepalo/time/ci.yaml?label=CI)](https://github.com/bepalo/time/actions/workflows/ci.yaml.yml)\n[![license](https://img.shields.io/npm/l/@bepalo/time.svg)](LICENSE)\n[![Vitest](https://img.shields.io/badge/vitest-6E9F18?style=for-the-badge&logo=vitest&logoColor=white)](test-result.md)\n\nA fluent time expression utility library for use like `Time.in(1).Week`.\n\n## 🚀 Get Started\n\n### 📥 Installation\n\n**Node.js / Bun (npm / pnpm / yarn)**\n\n```sh\nbun add @bepalo/time\n# or\npnpm add @bepalo/time\n# or\nnpm install @bepalo/time\n# or\nyarn add @bepalo/time\n```\n\n**Deno**\n\n```ts\nImport directly using the URL:\n\nimport { Time } from \"npm:@bepalo/time\";\n// or\nimport { Time } from \"jsr:@bepalo/time\";\n```\n\n## 📦 Basic Usage\n\n```js\nimport { Time } from \"@bepalo/time\";\n\n// ----------------------------------------//\n// So many ways to express time.           //\n// ----------------------------------------//\nTime.for(1).Day;\nTime.every(5).Seconds;\nTime.in(10).years.FromNow;\nTime.before(5).days.from(Time.now());\nTime.after(3).minutes.and(20).seconds.and(30).Milliseconds._ms;\nTime.every(5).Days;\nTime.for(5).hours.FromNow;\nTime.after(3).minutes.and(45).Seconds;\nTime.after(10).years.From(Time.now());\nTime.before(5).weeks.from(Time.now())._h;\n// ----------------------------------------\nTime.after(3).Minutes; // 3 minutes in seconds\nTime.after(3).minutes.and(20).Seconds;\nTime.after(3).minutes.and(20).seconds.and(30).Milliseconds;\n// ----------------------------------------\nTime.for(1).year.and(1).week; // default is in seconds\nTime.for(1).year.and(1).week.v; // in seconds\nTime.for(1).year.and(2).weeks.val; // in seconds\nTime.for(1).year.and(3).weeks.value; // in seconds\nTime.for(1).year.and(3).weeks._; // in seconds\nTime.for(1).year.and(4).weeks._ms; // in milliseconds\nTime.for(1).year.and(5).weeks._s; // in seconds\nTime.for(1).year.and(7).weeks._m; // in minutes\nTime.for(1).year.and(8).weeks._h; // in hours\nTime.for(1).year.and(9).weeks._d; // in days\nTime.for(1).year.and(10).weeks._w; // in weeks\nTime.for(1).year.and(11).weeks._y; // in years\n```\n\n## 🕊️ Thanks and Enjoy\n\nIf you like this library and want to support then please give a star on [GitHub](https://github.com/bepalo/time).\n\n## 💖 Be a Sponsor\n\nFund me so I can give more attention to the products and services you liked.\n\n<p align=\"left\">\n  <a href=\"https://ko-fi.com/natieshzed\" target=\"_blank\">\n    <img height=\"32\" src=\"https://img.shields.io/badge/Ko--fi-donate-orange?style=for-the-badge&logo=ko-fi&logoColor=white\" alt=\"Ko-fi Badge\"> \n  </a>\n</p>\n","readmeFilename":"README.md"}