{"id":26483816,"url":"https://github.com/chatopera/microloom","last_synced_at":"2026-05-20T06:02:18.515Z","repository":{"id":57296671,"uuid":"69953727","full_name":"chatopera/microloom","owner":"chatopera","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-13T02:57:10.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T15:05:37.507Z","etag":null,"topics":["async","compose","nodejs"],"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/chatopera.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":"2016-10-04T10:12:13.000Z","updated_at":"2020-09-11T13:58:00.000Z","dependencies_parsed_at":"2022-09-01T13:01:47.961Z","dependency_job_id":null,"html_url":"https://github.com/chatopera/microloom","commit_stats":null,"previous_names":["samurais/microloom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fmicroloom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fmicroloom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fmicroloom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fmicroloom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chatopera","download_url":"https://codeload.github.com/chatopera/microloom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554067,"owners_count":20471173,"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":["async","compose","nodejs"],"created_at":"2025-03-20T04:58:10.056Z","updated_at":"2026-05-20T06:02:13.456Z","avatar_url":"https://github.com/chatopera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microloom\n\n**Microloom** requires node v7.6.0 or higher for ES2015 and async function support.\n\n## Install\n```\nnpm install microloom --save\n```\n\n## Usage\nCheck out [Example](https://github.com/Samurais/microloom/tree/master/test/test.js).\n\n```\n// simulate a request.\nfunction wait(ms) {\n    return new Promise((resolve) =\u003e setTimeout(resolve, ms || 1))\n}\n\nlet app = require('microloom');\napp.use(async function (ctx, next) {\n    ctx.arr.push(1)\n    await next()\n    // process requests with Promise, Generator, Async or any object.\n    await wait(1)\n    ctx.arr.push(4)\n    return ctx;\n});\n\napp.use(async function (ctx, next) {\n    ctx.arr.push(2)\n    await next()\n    ctx.arr.push(3)\n});\n\napp.handle({ /* Inject ctx value */\n    arr: [0]\n}).then(function (result) {\n    console.log(result);\n    // { arr: [ 0, 1, 2, 3, 4 ] }\n}).catch(function (e) {\n    console.error(e)\n});\n\n```\n\n## Contribution\n```\ngit clone git@github.com:Samurais/microloom.git\ncd microloom\nnpm install \nava\n```\n\n## License \nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fmicroloom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatopera%2Fmicroloom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fmicroloom/lists"}