{"id":22392255,"url":"https://github.com/idimetrix/use-datetime-countdown","last_synced_at":"2025-07-31T09:31:40.329Z","repository":{"id":257533331,"uuid":"858596669","full_name":"idimetrix/use-datetime-countdown","owner":"idimetrix","description":"A customizable countdown hook for React","archived":false,"fork":false,"pushed_at":"2024-09-17T07:36:37.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-05T05:42:55.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idimetrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-09-17T07:30:08.000Z","updated_at":"2024-10-22T08:22:29.000Z","dependencies_parsed_at":"2024-09-17T08:52:52.732Z","dependency_job_id":null,"html_url":"https://github.com/idimetrix/use-datetime-countdown","commit_stats":null,"previous_names":["idimetrix/use-datetime-countdown"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idimetrix%2Fuse-datetime-countdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idimetrix%2Fuse-datetime-countdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idimetrix%2Fuse-datetime-countdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idimetrix%2Fuse-datetime-countdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idimetrix","download_url":"https://codeload.github.com/idimetrix/use-datetime-countdown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228230823,"owners_count":17888708,"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":[],"created_at":"2024-12-05T04:15:58.804Z","updated_at":"2024-12-05T04:15:58.925Z","avatar_url":"https://github.com/idimetrix.png","language":"TypeScript","readme":"# use-datetime-countdown\nA customizable countdown hook for React\n\n## Installation\n\nTo install the package, use npm:\n\n```bash\npnpm add use-datetime-countdown\n\nyarn install use-datetime-countdown\n\nnpm install use-datetime-countdown\n```\n\n## Usage\n\n```typescript\nimport { useDatetimeCountdown } from 'use-datetime-countdown';\n\nconst date = new Date('2025-01-01T01:00:00.001Z');\n\nconst datetime = useDatetimeCountdown();\n\nconsole.log(datetime);\n\n// {\n//     days: ...,\n//     hours: ...,\n//     minutes: ...,\n//     seconds: ...,\n// }\n```\n\n## tsup\nBundle your TypeScript library with no config, powered by esbuild.\n\nhttps://tsup.egoist.dev/\n\n## How to use this\n1. install dependencies\n```\n# pnpm\n$ pnpm install\n\n# yarn\n$ yarn install\n\n# npm\n$ npm install\n```\n2. Add your code to `src`\n3. Add export statement to `src/index.ts`\n4. Test build command to build `src`.\nOnce the command works properly, you will see `dist` folder.\n\n```zsh\n# pnpm\n$ pnpm run build\n\n# yarn\n$ yarn run build\n\n# npm\n$ npm run build\n```\n5. Publish your package\n\n```zsh\n$ npm publish\n```\n\n\n## test package\nhttps://www.npmjs.com/package/use-datetime-countdown\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidimetrix%2Fuse-datetime-countdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidimetrix%2Fuse-datetime-countdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidimetrix%2Fuse-datetime-countdown/lists"}