
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
nodegit-kit
Advanced tools
An incomplete set of NodeGit helper promises. Please don't use this in production yet.
Comments are welcome: https://github.com/thisconnect/nodegit-kit/issues
var kit = require('nodegit-kit');
var open = kit.open;
var commit = kit.commit;
var diff = kit.diff;
var log = kit.log;
var status = kit.status;
open('../repo-path/new/or/existing')
.then(function(repo){
return repo;
})
.then(function(repo){
// git diff
return diff(repo)
.then(function(diff){
// console.log(diff);
return repo;
});
})
.then(function(repo){
// git commit -am"commit message"
return commit(repo, {
'message': 'commit message'
});
})
.then(function(repo){
// git log
return log(repo);
})
.then(function(log){
// console.log(log);
})
.catch(function(error){
console.error(error.stack);
});
open('../repo-path/new/or/existing')
.then(function(repo){
// git status
return status(repo)
.then(function(status){
console.log(status);
return repo;
})
})
This is optional, if not configured, config tries to read your global git config.
var kit = require('nodegit-kit');
var config = kit.config;
config.set({
'user': {
'name': 'username',
'email': 'user@localhost'
}
});
npm test

FAQs
Complementary NodeGit helpers returning native Promises, helps with git commands such as init, add, commit, status, diff
The npm package nodegit-kit receives a total of 385 weekly downloads. As such, nodegit-kit popularity was classified as not popular.
We found that nodegit-kit 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
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.