Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Dynamic communication flows between message based actors.
Install babble via npm:
npm install babble
Example usage:
var babble = require('../index'),
babbler = babble.babbler,
reply = babble.reply,
run = babble.run;
var emma = babbler('emma'),
jack = babbler('jack');
emma.listen('ask age', reply(function () {
return 25;
}));
emma.listen('tell age', run(function (age) {
console.log(this.from + ' is ' + age + ' years old');
}));
jack.tell('emma', 'tell age', 27);
jack.ask('emma', 'ask age', run(function (age) {
console.log(this.from + ' is ' + age + ' years old');
}));
var babble = require('babble'),
babbler = babble.babbler,
reply = babble.reply,
run = babble.run,
decide = babble.decide;
var emma = babbler('emma'),
jack = babbler('jack');
emma.listen('How are you doing?', decide(function (response) {
if (Math.random() > 0.2) {
return reply(function () {
return 'great';
});
}
else {
return reply(function () {
return 'not good';
}, decide(function (response) {
if (response == 'Why?') {
return reply(function () {
return 'I got my nose smashed in against the wall';
});
}
else if (response == 'I don\'t care') {
return reply(function () {
return 'Shut up!';
})
}
}));
}
})
);
jack.ask('emma', 'How are you doing?', decide(function (response) {
if (response == 'mwa') {
return reply(function () {
return 'Why?';
}, run(function (response) {
console.log(response);
});
}
}));
TODO: describe API
To execute tests for the library, install the project dependencies once:
npm install
Then, the tests can be executed:
npm test
2013-12-31, version 0.2.0
FAQs
Dynamic communication flows between message based actors.
The npm package babble receives a total of 671 weekly downloads. As such, babble popularity was classified as not popular.
We found that babble 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.