{"id":19874423,"url":"https://github.com/strongloop/loopback-phase","last_synced_at":"2025-05-02T10:31:09.394Z","repository":{"id":21723654,"uuid":"25045286","full_name":"strongloop/loopback-phase","owner":"strongloop","description":"Phase management for LoopBack applications.","archived":false,"fork":false,"pushed_at":"2020-03-06T08:54:21.000Z","size":92,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-22T13:19:35.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2014-10-10T17:13:28.000Z","updated_at":"2022-03-03T01:03:54.000Z","dependencies_parsed_at":"2022-08-19T22:00:31.157Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/loopback-phase","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-phase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-phase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-phase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-phase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/loopback-phase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252023229,"owners_count":21682146,"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-12T16:23:18.066Z","updated_at":"2025-05-02T10:31:09.089Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoopBack Phase\n\n**⚠️ LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical\nsecurity fixes will be provided. (See\n[Module Long Term Support Policy](#module-long-term-support-policy) below.)**\n\nWe urge all LoopBack 3 users to migrate their applications to LoopBack 4 as\nsoon as possible. Refer to our\n[Migration Guide](https://loopback.io/doc/en/lb4/migration-overview.html)\nfor more information on how to upgrade.\n\n## Overview\n\nHook into the various phases of a LoopBack application.\n\n## Installation\n\n    npm install loopback-phase\n\n## Usage\n\n```js\nvar PhaseList = require('loopback-phase').PhaseList;\nvar phases = new PhaseList();\nphases.add('first');\nphases.add('second');\nphases.add('third');\n\nvar first = phases.find('first');\nvar second = phases.find('second');\n\nfirst.use(function(ctx, cb) {\n  console.log('this is the first phase!');\n  cb();\n});\n\nsecond.use(function(ctx, cb) {\n  console.log('this is the second phase!');\n  cb();\n});\n\nphases.run(ctx);\n```\n\nSee [API docs](http://apidocs.strongloop.com/loopback-phase/) for\ncomplete API reference.\n\n## License\n\n[MIT](LICENSE).\n\n## Module Long Term Support Policy\n\nThis module adopts the [Module Long Term Support (LTS)](http://github.com/CloudNativeJS/ModuleLTS) policy, with the following End Of Life (EOL) dates:\n\n| Version | Status          | Published | EOL      |\n| ------- | --------------- | --------- | -------- |\n| 3.x     | Maintenance LTS | Dec 2016  | Dec 2020 |\n| 1.x     | End-of-Life     | Oct 2014  | Apr 2019 |\n\nLearn more about our LTS plan in the [docs](https://loopback.io/doc/en/contrib/Long-term-support.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Floopback-phase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Floopback-phase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Floopback-phase/lists"}