{"id":28483580,"url":"https://github.com/thegamer49520/timeout-typescript","last_synced_at":"2026-05-08T17:31:27.682Z","repository":{"id":295000276,"uuid":"988713882","full_name":"thegamer49520/timeout-typescript","owner":"thegamer49520","description":"A lightweight utility for TypeScript and JavaScript, `@adam-rocska/timeout` creates a Promise that resolves after a set time, perfect for managing delays in your async workflows. Check it out on GitHub for easy integration into your projects! 🐙✨","archived":false,"fork":false,"pushed_at":"2026-05-01T21:10:18.000Z","size":663,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-01T23:14:39.483Z","etag":null,"topics":["angular","assert","async","await","axios","browser","cache","callback","declarative","deep","delay","done","equal","fluent-language","mocha","promise","timeout","utility"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/thegamer49520.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-23T01:03:17.000Z","updated_at":"2026-05-01T21:10:23.000Z","dependencies_parsed_at":"2025-06-20T19:20:41.262Z","dependency_job_id":"97d34805-7d62-48ba-98e6-e19f38059a38","html_url":"https://github.com/thegamer49520/timeout-typescript","commit_stats":null,"previous_names":["thegamer49520/timeout-typescript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thegamer49520/timeout-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegamer49520%2Ftimeout-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegamer49520%2Ftimeout-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegamer49520%2Ftimeout-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegamer49520%2Ftimeout-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thegamer49520","download_url":"https://codeload.github.com/thegamer49520/timeout-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegamer49520%2Ftimeout-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32790171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","assert","async","await","axios","browser","cache","callback","declarative","deep","delay","done","equal","fluent-language","mocha","promise","timeout","utility"],"created_at":"2025-06-07T22:00:32.959Z","updated_at":"2026-05-08T17:31:27.666Z","avatar_url":"https://github.com/thegamer49520.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timeout-typescript ⏳\n\n![GitHub release](https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip)\n![GitHub stars](https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip)\n![GitHub forks](https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip)\n\nA lightweight TypeScript utility to create a Promise that resolves after a specified delay. Ideal for async delays in https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip and browsers.\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Reference](#api-reference)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [License](#license)\n- [Support](#support)\n\n## Features\n\n- **Lightweight**: Minimal code footprint, easy to integrate.\n- **TypeScript Support**: Built with TypeScript for better type safety.\n- **Cross-Platform**: Works seamlessly in both https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip and browser environments.\n- **Promise-Based**: Utilizes Promises for clean asynchronous code.\n\n## Installation\n\nTo install the utility, you can use npm or yarn. Run one of the following commands in your terminal:\n\n```bash\nnpm install timeout-typescript\n```\n\nor \n\n```bash\nyarn add timeout-typescript\n```\n\n## Usage\n\nTo use the utility, simply import it into your TypeScript or JavaScript file. Here’s a basic example:\n\n```typescript\nimport { timeout } from 'timeout-typescript';\n\nasync function delayedExecution() {\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('Waiting for 3 seconds...');\n    await timeout(3000); // Wait for 3 seconds\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('3 seconds have passed!');\n}\n\ndelayedExecution();\n```\n\n## API Reference\n\n### `timeout(ms: number): Promise\u003cvoid\u003e`\n\n- **Parameters**:\n  - `ms`: The delay in milliseconds before the Promise resolves.\n  \n- **Returns**: A Promise that resolves after the specified delay.\n\n### Example\n\n```typescript\ntimeout(1000).then(() =\u003e {\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('Executed after 1 second');\n});\n```\n\n## Examples\n\nHere are some practical examples of how to use `timeout-typescript`.\n\n### Example 1: Simple Delay\n\n```typescript\nimport { timeout } from 'timeout-typescript';\n\nasync function simpleDelay() {\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('Starting delay...');\n    await timeout(2000); // 2 seconds\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('Delay finished!');\n}\n\nsimpleDelay();\n```\n\n### Example 2: Chaining Promises\n\n```typescript\nimport { timeout } from 'timeout-typescript';\n\nasync function chainPromises() {\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('First action');\n    await timeout(1000);\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('Second action after 1 second');\n    await timeout(2000);\n    https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip('Third action after another 2 seconds');\n}\n\nchainPromises();\n```\n\n### Example 3: Using in a Loop\n\n```typescript\nimport { timeout } from 'timeout-typescript';\n\nasync function loopWithDelay() {\n    for (let i = 1; i \u003c= 5; i++) {\n        https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip(`Iteration ${i}`);\n        await timeout(1000); // 1 second delay\n    }\n}\n\nloopWithDelay();\n```\n\n## Contributing\n\nWe welcome contributions! If you would like to contribute, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes.\n4. Commit your changes (`git commit -m 'Add some feature'`).\n5. Push to the branch (`git push origin feature-branch`).\n6. Open a Pull Request.\n\nPlease ensure your code follows the existing style and includes appropriate tests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Support\n\nFor any issues or feature requests, please check the [Releases](https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip) section. You can also reach out via the Issues tab on GitHub.\n\n## Releases\n\nTo download the latest version, visit the [Releases](https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip) page. Here, you can find the latest updates and changes.\n\n## Acknowledgments\n\n- Thanks to the TypeScript community for their contributions and support.\n- Special thanks to all the contributors who have helped improve this project.\n\n## Conclusion\n\n`timeout-typescript` provides a simple yet effective way to manage delays in your asynchronous code. Whether you're building applications for https://raw.githubusercontent.com/thegamer49520/timeout-typescript/master/test/unit/timeout-typescript-honeydrop.zip or the browser, this utility can help streamline your workflows. Explore the examples, and feel free to contribute to make this tool even better!\n\n---\n\nThis README provides a comprehensive overview of the `timeout-typescript` utility. For further details, feel free to explore the code and documentation.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegamer49520%2Ftimeout-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthegamer49520%2Ftimeout-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegamer49520%2Ftimeout-typescript/lists"}