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.
![npm](https://img.shields.io/npm/v/arpxjs?color=black) [![Build Status](https://travis-ci.com/jaredgorski/arpxjs.svg?branch=master)](https://travis-ci.com/jaredgorski/arpxjs) Automate and relate multiple processes programmatically.
Automate and relate multiple processes programmatically.
arpxjs enables Node programs to automate, schedule, and parallelize processes relative to each other based on a local YAML profile by exposing a function which binds to the arpx utility. See arpx for details about the utility itself.
Invoking the exported arpxjs()
function, passing a filepath to a valid PROFILE, and specifying an array of PROCESSES to run from the profile will execute the given PROCESSES, according to the PROFILE, in the current runtime.
Node 8 | Node 10 | Node 12 | |
---|---|---|---|
Linux x64 - glibc | ✓ | ✓ | ✓ |
Linux x64 - musl-libc | ✓ | ✓ | ✓ |
OSX x64 | ✓ | ✓ | ✓ |
NOTE: Feel free to implement support for your platform and send a PR. Alternatively, open an issue requesting support.
$ npm install arpxjs
arpx.yaml
processes:
- name: loop1
command: |
for i in {1..5}
do
sleep 1
echo "Loop1 $i"
done
blocking: true
- name: loop3
command: |
for i in {1..5}
do
sleep 1
echo "Loop3 $i"
done
monitors:
- process: loop1
condition: '[[ "$LOG_LINE" =~ "Loop1 5" ]]'
actions:
- loop2
actions:
- name: loop2
command: |
for i in {1..3}
do
sleep 1
echo "Loop2 $i"
done
exit
index.js
const {arpxjs} = require('arpxjs');
console.log('before');
arpxjs('./arpx.yaml', ['loop1', 'loop3']);
console.log('after');
$ node index.js
Output:
FAQs
Automate and relate multiple processes programmatically.
The npm package arpxjs receives a total of 3 weekly downloads. As such, arpxjs popularity was classified as not popular.
We found that arpxjs 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.