{"id":21569444,"url":"https://github.com/naturalcycles/time-lib","last_synced_at":"2025-03-18T05:45:18.208Z","repository":{"id":34896285,"uuid":"187415954","full_name":"NaturalCycles/time-lib","owner":"NaturalCycles","description":"Date/time related API, based on DayJS","archived":false,"fork":false,"pushed_at":"2023-10-21T14:04:02.000Z","size":2001,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-01-24T12:32:31.911Z","etag":null,"topics":["api","date","dayjs","time"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NaturalCycles.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-18T23:58:46.000Z","updated_at":"2021-11-21T19:57:05.000Z","dependencies_parsed_at":"2024-06-20T19:03:52.423Z","dependency_job_id":null,"html_url":"https://github.com/NaturalCycles/time-lib","commit_stats":{"total_commits":107,"total_committers":3,"mean_commits":"35.666666666666664","dds":"0.39252336448598135","last_synced_commit":"8d2fd0c61fc8b6d0aaafe891aa29d17695d1492b"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Ftime-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Ftime-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Ftime-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Ftime-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaturalCycles","download_url":"https://codeload.github.com/NaturalCycles/time-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166677,"owners_count":20409178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","date","dayjs","time"],"created_at":"2024-11-24T11:09:30.957Z","updated_at":"2025-03-18T05:45:18.189Z","avatar_url":"https://github.com/NaturalCycles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## @naturalcycles/time-lib\n\n\u003e Date/time API, based on Dayjs.\n\n[![npm](https://img.shields.io/npm/v/@naturalcycles/time-lib/latest.svg)](https://www.npmjs.com/package/@naturalcycles/time-lib)\n[![min.gz size](https://badgen.net/bundlephobia/minzip/@naturalcycles/time-lib)](https://bundlephobia.com/result?p=@naturalcycles/time-lib)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\n# Why\n\n- Fixes TypeScript imports, regardless if esModuleInterop is used or not\n- ~~Allows to use it as ESM package with tree-shaking (without breaking your TypeScript again)~~\n- Opinionated. Includes \"needed\" dayjs plugins by default.\n- Allows to \"just import dayjs\" and not worry about:\n  - Loading plugins for all of your \"entry points\", such as `startServer.ts`, `setupJest.ts`, at\n    every cron job, etc.\n  - That plugins are loaded BEFORE they are used (dependent on import order)\n  - That TypeScript types are not loaded with plugins\n- Extends dayjs with some useful functions (via Plugin interface)\n- Has working `isoWeekday` plugin\n- Has `en-gb` locale by default, so, default firstDayOfWeek is Monday\n\n# API\n\nTODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalcycles%2Ftime-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturalcycles%2Ftime-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalcycles%2Ftime-lib/lists"}