{"id":16883476,"url":"https://github.com/dbkaplun/driftless","last_synced_at":"2025-04-06T20:13:32.566Z","repository":{"id":15720997,"uuid":"18459124","full_name":"dbkaplun/driftless","owner":"dbkaplun","description":"Driftless setInterval and setTimeout replacement for Node and the browser","archived":false,"fork":false,"pushed_at":"2022-12-07T17:30:03.000Z","size":3588,"stargazers_count":79,"open_issues_count":20,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-14T13:15:18.599Z","etag":null,"topics":["accurate","drift","precise","setinterval","settimeout"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dbkaplun.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":"2014-04-05T03:24:00.000Z","updated_at":"2024-01-15T16:41:47.000Z","dependencies_parsed_at":"2023-01-13T18:33:22.287Z","dependency_job_id":null,"html_url":"https://github.com/dbkaplun/driftless","commit_stats":null,"previous_names":["dbkaplun/rolex"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbkaplun%2Fdriftless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbkaplun%2Fdriftless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbkaplun%2Fdriftless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbkaplun%2Fdriftless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbkaplun","download_url":"https://codeload.github.com/dbkaplun/driftless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543595,"owners_count":20955865,"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":["accurate","drift","precise","setinterval","settimeout"],"created_at":"2024-10-13T16:11:55.423Z","updated_at":"2025-04-06T20:13:32.502Z","avatar_url":"https://github.com/dbkaplun.png","language":"JavaScript","readme":"# `driftless` [![Build Status](https://travis-ci.org/dbkaplun/driftless.svg?branch=master)](https://travis-ci.org/dbkaplun/driftless)\n\nDriftless setInterval and setTimeout replacement for Node and the browser\n\n[![comparison](https://github.com/dbkaplun/driftless/raw/master/comparison.gif)](https://asciinema.org/a/183890)\n\n## Usage\n\n```\nnpm install driftless\n```\n\n```js\nimport {\n  setDriftlessTimeout,\n  setDriftlessInterval,\n  clearDriftless,\n} from 'driftless';\n// Use like setTimeout and setInterval\n```\n\n## How it works\n\n`driftless` repeatedly calls setTimeout in advance of the requested timeout for\ngreater accuracy. It does this recursively, until the timeout is reached within\na given threshold.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbkaplun%2Fdriftless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbkaplun%2Fdriftless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbkaplun%2Fdriftless/lists"}