
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
carcass-monitor
Advanced tools
A simple wrap of forever-monitor, in Carcass style.
This is only meant to be used in tests where you need to start and stop some scripts easily. For production, use forever or equivalent.
In a Mocha test:
var Monitor = require('carcass-monitor');
describe('Something:', function() {
var monitor = new Monitor();
before(function(done) {
/**
* Each stack will be started with an instance of forever Monitor, in
* the syntax of:
*
* `new forever.Monitor('something', {...other_options...});`
*/
monitor.stack({
script: 'something',
sourceDir: 'somewhere',
options: ['some', 'options']
}).stack(...).start(done);
});
after(function(done) {
monitor.close(done);
});
...
});
var monitor = new Monitor([id])
ID is optional; defaults to a random string.
monitor.stack(options)
Returns the monitor itself so it's chain-able. options
is an object and will be used to instantiate a forever.Monitor
, with options.script
as the first argument, and the others as the second. See forever-monitor's document for details.
Can be used multiple times to add multiple items.
monitor.start(done)
Starts all the items; returns the monitor itself.
monitor.close(done)
Closes (stops) all the items; returns the monitor itself.
FAQs
(Node.js) A simple wrap of forever-monitor, in Carcass style.
We found that carcass-monitor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.