{"id":28234602,"url":"https://github.com/zwingz/lite-queue","last_synced_at":"2026-05-04T07:31:59.690Z","repository":{"id":35018514,"uuid":"187190676","full_name":"zWingz/lite-queue","owner":"zWingz","description":"a queue manager for sync/async function","archived":false,"fork":false,"pushed_at":"2023-01-03T22:12:02.000Z","size":866,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T22:14:01.735Z","etag":null,"topics":["javascript","queue"],"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/zWingz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-05-17T09:46:15.000Z","updated_at":"2020-11-05T12:05:44.000Z","dependencies_parsed_at":"2023-01-15T12:07:18.886Z","dependency_job_id":null,"html_url":"https://github.com/zWingz/lite-queue","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zWingz/lite-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zWingz%2Flite-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zWingz%2Flite-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zWingz%2Flite-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zWingz%2Flite-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zWingz","download_url":"https://codeload.github.com/zWingz/lite-queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zWingz%2Flite-queue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259533686,"owners_count":22872436,"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":["javascript","queue"],"created_at":"2025-05-18T22:14:03.208Z","updated_at":"2026-05-04T07:31:59.663Z","avatar_url":"https://github.com/zWingz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## lite-queue\n\n[![CircleCI](https://circleci.com/gh/zWingz/lite-queue.svg?style=svg)](https://circleci.com/gh/zWingz/lite-queue)\n[![codecov](https://codecov.io/gh/zWingz/lite-queue/branch/master/graph/badge.svg)](https://codecov.io/gh/zWingz/lite-queue)\n\ncall `function` in queue\n\n### Usage\n\n```javascript\nimport Queue from 'lite-queue'\nconst q = new Queue()\n\n// sync function\nq.exec(() =\u003e {\n  return 1\n}).then(d =\u003e {\n  console.log(d === 1) // true\n})\n\n// async\nq.exec(() =\u003e {\n  return new Promise(res =\u003e {\n    res(2)\n  })\n}).then(d =\u003e {\n  console.log(d === 2) // true\n})\n```\n\n### with done callback\n\n```javascript\nimport Queue from 'lite-queue'\nconst q = new Queue()\nconst opt = { useDone: true }\nq.exec(() =\u003e 1, opt)\nq.exec(() =\u003e 2, opt)\nq.exec(() =\u003e 3, opt)\nq.done().then(values =\u003e {\n  console.log(values) // [1,2,3]\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwingz%2Flite-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzwingz%2Flite-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwingz%2Flite-queue/lists"}