
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
Tranformation chain utilizing an accumulating mixin (called a glom) input parameter.
npm install glom
If one was to describe the atomic actions required to create a new account using a chain of asynchronous functions, your Glom would look like this:
// A chain of business rules for account creation
new Glom([
validateUserInput,
isEmailUnique,
createUser,
[createDefaultPermissions, deleteUser, createError, returnJson] // Sidechain in case of failure
notifyAdmin,
registerNewUserStats,
returnJson
]).run({
email: 'bob@bob.com',
password: 'woooo'
}, console.log, console.error);
var Glom = require('glom');
function incrementData (value, next, error) {
done({
value: value + 1
});
}
function setDataSnapshot (value, next, error) {
this.snapshots.set('value', value);
done();
}
function doubleData (value, next, error) {
if (value > 5) {
error('Data is too big.');
} else {
done({
value: value * 2
});
}
}
function printData (value, next, error) {
console.log(value);
done();
}
function revertToSnapshot (messages, next, error) {
done({
value: this.snapshots.get('value')
});
}
Glom([
incrementData,
getDataSnapshot,
[doubleData, revertToSnapshot],
printData
]).run({
value: 3
}, function glomDone (glom) {
console.log('Glom complete with final transformation:');
console.dir(glom);
}, console.error);
Notice that each method in a Glom has its own parameters, allowing any simple, testable, and potentially isomorphic method to be used by Glom, provided the last two parameters are callbacks named next and error. Please see the tests for more use cases.
FAQs
Modanic chain utilizing an accumulating mixin input parameter.
The npm package glom receives a total of 3 weekly downloads. As such, glom popularity was classified as not popular.
We found that glom 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.