{"id":20838718,"url":"https://github.com/mdovhopo/better-wait","last_synced_at":"2025-05-08T21:28:53.589Z","repository":{"id":46646014,"uuid":"376629661","full_name":"mdovhopo/better-wait","owner":"mdovhopo","description":"wait - promise based function that provides human readable interface for delaying some actions for some period of time","archived":false,"fork":false,"pushed_at":"2021-10-02T09:06:09.000Z","size":361,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T20:49:12.899Z","etag":null,"topics":["hacktoberfest","ts","wait"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdovhopo.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}},"created_at":"2021-06-13T19:58:42.000Z","updated_at":"2023-01-09T13:24:43.000Z","dependencies_parsed_at":"2022-08-27T10:41:44.081Z","dependency_job_id":null,"html_url":"https://github.com/mdovhopo/better-wait","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdovhopo%2Fbetter-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdovhopo%2Fbetter-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdovhopo%2Fbetter-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdovhopo%2Fbetter-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdovhopo","download_url":"https://codeload.github.com/mdovhopo/better-wait/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225110549,"owners_count":17422411,"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":["hacktoberfest","ts","wait"],"created_at":"2024-11-18T01:11:19.651Z","updated_at":"2024-11-18T01:11:20.238Z","avatar_url":"https://github.com/mdovhopo.png","language":"TypeScript","readme":"# better-wait\n\n[![Deploy](https://github.com/mdovhopo/better-wait/workflows/build/badge.svg)](https://github.com/mdovhopo/better-wait/actions)\n[![Coverage Status](https://coveralls.io/repos/github/mdovhopo/better-wait/badge.svg?branch=master)](https://coveralls.io/github/mdovhopo/better-wait?branch=master)\n\nConvenient delay function with human friendly interface\n\nInstallation:\n\n```sh\nnpm i better-wait\nyarn add better-wait\n```\n\n## Usage\n\n```ts\nimport { wait } from 'better-wait';\n\nawait wait('3s'); // use human readable values for delay\nawait wait(1000); // use milliseconds if you feel more like a machine\nawait wait('1 hour', { reject: true }); // promise will reject\nawait wait('1 year', { returnValue: 'your custom return value' }); // you can also return anything you want\n```\n\nBootstrapped with: [create-ts-lib-gh](https://github.com/glebbash/create-ts-lib-gh)\n\nThis project is [Mit Licensed](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdovhopo%2Fbetter-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdovhopo%2Fbetter-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdovhopo%2Fbetter-wait/lists"}