{"id":20514064,"url":"https://github.com/webreflection/reraf","last_synced_at":"2025-04-14T00:05:25.186Z","repository":{"id":65993272,"uuid":"217844154","full_name":"WebReflection/reraf","owner":"WebReflection","description":"A super light and simple way to reschedule animation frames","archived":false,"fork":false,"pushed_at":"2019-12-10T11:45:54.000Z","size":22,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T15:18:19.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebReflection.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}},"created_at":"2019-10-27T11:20:40.000Z","updated_at":"2024-09-02T13:21:31.000Z","dependencies_parsed_at":"2023-05-21T17:00:17.536Z","dependency_job_id":null,"html_url":"https://github.com/WebReflection/reraf","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Freraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Freraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Freraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Freraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebReflection","download_url":"https://codeload.github.com/WebReflection/reraf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232797486,"owners_count":18577981,"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-11-15T21:14:36.624Z","updated_at":"2025-01-06T23:12:02.012Z","avatar_url":"https://github.com/WebReflection.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reraf\n\n[![Build Status](https://travis-ci.com/WebReflection/reraf.svg?branch=master)](https://travis-ci.com/WebReflection/reraf) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/reraf/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/reraf?branch=master)\n\n\u003csup\u003e**Social Media Photo by [Hans Eiskonen](https://unsplash.com/@eiskonen) on [Unsplash](https://unsplash.com/)**\u003c/sup\u003e\n\nA super light and simple way to reschedule animation frames, compatible with every browser and Node.js through a `setTimeout` and `clearTimeout` fallback.\n\n```js\nimport reraf from 'reraf';\n// or const reraf = require('reraf');\n// or \u003cscript src=\"//unpkg.com/reraf\"\u003e\n\nconst reschedule = reraf(/* optional integer limit */);\n\nreschedule(console.log, null, ['first']);\nreschedule(console.log, null, ['second']);\n// will log \"second\", but never \"first\"\n```\n\nThe `reschedule(...)` returns a function to be able to `stop()` the scheduled animation frame, in case it's needed.\n\nIf a `truthy` value is passed to `stop(truthy)`, the callback will be \"flushed\" (invoked) if it didn't flush already.\n\nThe `stop(...)` function returns a boolean value, indicating the stop actually stopped the execution of the callback, or it didn't, 'cause it happened before.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Freraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebreflection%2Freraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Freraf/lists"}