moved to https://github.com/milahu/gnumake-tokenpool
javascript client for the GNU make jobserver
npm install @milahu/gnumake-jobclient
or
npm install github:milahu/gnumake-jobclient-js
import { JobClient } from '@milahu/gnumake-jobclient';
const jobClient = JobClient();
const token = jobClient.acquire();
// do some work
jobClient.release(token);
see also test/test.mjs