{"id":22828661,"url":"https://github.com/busterc/fib-interval","last_synced_at":"2025-06-29T08:37:37.955Z","repository":{"id":57235115,"uuid":"84994055","full_name":"busterc/fib-interval","owner":"busterc","description":":repeat: setInterval using a series of incrementing Fibonacci durations","archived":false,"fork":false,"pushed_at":"2018-08-25T21:51:02.000Z","size":5,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T17:07:56.429Z","etag":null,"topics":["backoff","fibonacci","setinterval","settimeout"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/busterc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-14T20:28:00.000Z","updated_at":"2023-09-08T17:22:14.000Z","dependencies_parsed_at":"2022-08-23T15:50:44.557Z","dependency_job_id":null,"html_url":"https://github.com/busterc/fib-interval","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/busterc/fib-interval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Ffib-interval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Ffib-interval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Ffib-interval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Ffib-interval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/busterc","download_url":"https://codeload.github.com/busterc/fib-interval/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Ffib-interval/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262565696,"owners_count":23329653,"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":["backoff","fibonacci","setinterval","settimeout"],"created_at":"2024-12-12T19:11:16.782Z","updated_at":"2025-06-29T08:37:37.937Z","avatar_url":"https://github.com/busterc.png","language":"JavaScript","readme":"# fib-interval [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]\n\n\u003e setInterval using a series of incrementing Fibonacci durations\n\n\n## Install\n\n```sh\n$ npm install --save fib-interval\n```\n\n\n## Usage\n\n- Unlike `setInterval`\n  - The delay provided must be a numeric Array with the first 2 values to use\n  - To stop a timer you must call `.clear()` on the instance\n  - To snoop out the current delay time, call `.delay()` on the instance\n\n**For Example:**\n\n```js\n'use strict';\n\nvar fibInterval = require('fib-interval');\n\n// fibInterval(Function, [Number, Number]) : Object\n\nvar instance = fibInterval(function () {\n  var delay = instance.delay();\n\n  console.log(delay);\n\n  if (delay === 800) {\n    instance.clear();\n    console.log('fatto');\n  }\n}, [0, 100]);\n\n// ==\u003e results:\n// 0\n// 100\n// 100\n// 200\n// 300\n// 500\n// 800\n// fatto\n\n```\n\n## License\n\nISC © [Buster Collings](http://about.me/buster)\n\n\n[npm-image]: https://badge.fury.io/js/fib-interval.svg\n[npm-url]: https://npmjs.org/package/fib-interval\n[travis-image]: https://travis-ci.org/busterc/fib-interval.svg?branch=master\n[travis-url]: https://travis-ci.org/busterc/fib-interval\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Ffib-interval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusterc%2Ffib-interval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Ffib-interval/lists"}