{"id":17159137,"url":"https://github.com/scull7/pipeline-queue","last_synced_at":"2025-03-24T14:45:12.749Z","repository":{"id":16660432,"uuid":"19415990","full_name":"scull7/pipeline-queue","owner":"scull7","description":"A simple request queuing middleware for Express and like frameworks.","archived":false,"fork":false,"pushed_at":"2016-08-15T17:46:36.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T13:12:50.605Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scull7.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-05-04T01:17:05.000Z","updated_at":"2022-08-24T01:15:30.000Z","dependencies_parsed_at":"2022-07-26T08:32:05.581Z","dependency_job_id":null,"html_url":"https://github.com/scull7/pipeline-queue","commit_stats":null,"previous_names":["scull7/request-queue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fpipeline-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fpipeline-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fpipeline-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scull7%2Fpipeline-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scull7","download_url":"https://codeload.github.com/scull7/pipeline-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294711,"owners_count":20591898,"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-10-14T22:13:26.118Z","updated_at":"2025-03-24T14:45:12.723Z","avatar_url":"https://github.com/scull7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/scull7/pipeline-queue.svg?branch=master)](https://travis-ci.org/scull7/pipeline-queue)\n[![Coverage Status](https://coveralls.io/repos/scull7/pipeline-queue/badge.png)](https://coveralls.io/r/scull7/pipeline-queue)\n[![Code Climate](https://codeclimate.com/github/scull7/pipeline-queue.png)](https://codeclimate.com/github/scull7/pipeline-queue)\n\npipeline-queue\n==============\nA simple queuing mechanism that can pipeline requests for a long running resource request.  By using this queue you can make multiple requests to the resource but the resource will only receive traffic as fast as it will respond.\n\nInstallation\n------------\nJust use npm to install.\n\n```javascript\nnpm install pipeline-queue\n```\n\nUsage\n-----\n\n```javascript\nvar PipelineQueue = require('pipeline-queue'),\nqueue = PipelineQueue();\n\nkey = 'unique-key';\ntask = function () { //do something that takes a long time. };\ncallback1 = function (results) { // handle the response. };\n\nqueue.run(key, task, callback1);\n\n//make a second request\ncallback2 = function (results) { // handle the response. };\n\nqueue.run(key, task, callback2); //if the task has not completed yet,\n                                //then our callback will be queued and the task will not be run.\n                                //Our callback will receive the results of the initial task run.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscull7%2Fpipeline-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscull7%2Fpipeline-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscull7%2Fpipeline-queue/lists"}