![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
IN DEVELOPMENT - to be released fully functional any minute now :)
Monitor parallel jobs
npm install --save-dev alarmist
Execute a job
alarmist exec -g group -n name -c my-command
Monitor a group
alarmist monitor -g group
var alarmist = require('alarmist');
Create a job.
alarmist.createJob({
group: 'group',
name: 'name'
}).then(function(job) {
...
});
The job will expose stdout
and stdin
write streams that you can use for logging.
job.stdout.write('this gets recorded as stdout');
job.stderr.write('this gets recorded as stderr');
When the job is complete call the complete
method to signal success or failure with an exit code.
job.complete({
exitCode: 0
}).then(function() {
...
});
alarmist.exec({
group: 'group',
name: 'name',
command: 'my-command'
}).then(function() {
...
});
Start a monitor
alarmist.createMonitor({
group: 'group'
}).then(function(monitor) {
...
});
Listen for start events
monitor.on('start', function(job) {
console.log(job.id);
console.log(job.name);
console.log(job.startTime);
});
Listen for complete events
monitor.on('complete', function(job) {
console.log(job.id);
console.log(job.name);
console.log(job.startTime);
console.log(job.endTime);
console.log(job.exitCode);
console.log(job.stdout);
console.log(job.stderr);
console.log(job.all);
});
Stop a monitor
monitor.close();
Run tests, etc before pushing changes/opening a PR
npm test
- lint and testnpm run build
- run tests then buildnpm run watch
- watch for changes and run buildnpm run ci
- run build and submit coverage to coverallsFAQs
Monitor parallel jobs
The npm package alarmist receives a total of 7 weekly downloads. As such, alarmist popularity was classified as not popular.
We found that alarmist 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.