
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@aux4/facilitator
Advanced tools
Natural language as a programming language
npm install --global facilitator
test.txt
set "firstName" to "John"
set "lastName" to "Doe"
print "Hello {{firstName}} {{lastName}}"
facilitator execute test.txt
import Facilitator, { install } from "facilitator";
const facilitator = new Facilitator();
install(facilitator);
facilitator.register("say hello to {firstName} {lastName}", (firstName, lastName) => {
console.log(`Hello ${firstName} ${lastName}!`);
});
const script = `
say hello to "John" "Doe"
`;
facilitator.exec(script, { currentDate: new Date() });
Output:
Hello John Doe
To make the variable optional you can include the ? as suffix of the variable. e.g.: {count?}
By default the variables are represented by quoted text (e.g.: "value"), you can redefine the variable,
the third parameter of register receives an object with the regular expression to represent the variable:
{
count: /\d+/
}
import Facilitator, { install } from "facilitator";
const facilitator = new Facilitator();
install(facilitator);
facilitator.register("increment\\s*{count?}", (count, context) => {
let value = context.count || parseInt(count);
value += 1;
context.count = value;
console.log("increment", value);
}, {
count: /\d+/
});
const script = `
increment 5
increment
increment
increment
increment
`;
facilitator.exec(script, {});
Output:
increment 6
increment 7
increment 8
increment 9
increment 10
FAQs
Natural language as a programming language
We found that @aux4/facilitator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.