
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
loopback-phase
Advanced tools
⚠️ LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical security fixes will be provided. (See Module Long Term Support Policy below.)
We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as soon as possible. Refer to our Migration Guide for more information on how to upgrade.
Hook into the various phases of a LoopBack application.
npm install loopback-phase
var PhaseList = require('loopback-phase').PhaseList;
var phases = new PhaseList();
phases.add('first');
phases.add('second');
phases.add('third');
var first = phases.find('first');
var second = phases.find('second');
first.use(function(ctx, cb) {
console.log('this is the first phase!');
cb();
});
second.use(function(ctx, cb) {
console.log('this is the second phase!');
cb();
});
phases.run(ctx);
See API docs for complete API reference.
MIT.
This module adopts the Module Long Term Support (LTS) policy, with the following End Of Life (EOL) dates:
Version | Status | Published | EOL |
---|---|---|---|
3.x | Maintenance LTS | Dec 2016 | Dec 2020 |
1.x | End-of-Life | Oct 2014 | Apr 2019 |
Learn more about our LTS plan in the docs.
FAQs
Hook into a LoopBack application's phases
The npm package loopback-phase receives a total of 22,247 weekly downloads. As such, loopback-phase popularity was classified as popular.
We found that loopback-phase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.