
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Some useful tools for nodejs development
Some tools are from https://github.com/wyicwx/mutils
##Usage
var gear = require('gear');
var _ = gear._;//underscore
//watch object`s change
var listenid = gear.listen.add({}, function(data){//add watch
//do something
});
gear.listen.set(listenid, {a:1});//set object, and will trigger callback function of 'add'
gear.jsonsize(jsonobj);//calculate the length of a simple json object
gear.fs.mkdir('a/b/c', './');//make dir ./a/b/c
gear.fs.readFile('test.js').done(function(data){//read local file
//content of test.js
});
gear.fs.readFile('http://test.com/test.js').done(function(data){//read net file
//content of test.js
});
gear.fs.copyFile(file, tarDir, [
{ match : '@', replacement : '-', isreg:false}
]).done(function(src){
});
gear.fs.clearDirSync('a', function(){//remove all files from 'a' directory
//do something
});
//Sequential execution in nodejs
var c = gear.connect();
c.use(function(data, next, done) {
//coding1
next(data); //pass to next function
});
c.use(function(data, next, done) {
//coding2
done(data); //stop pass and trigger to fire
});
c.fire();
FAQs
utils for nodejs
We found that gearjs 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

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.