Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Gitty is a Node.js wrapper for Git. It's syntax resembles the Git command line syntax, executes common commands, and parses the output into operable objects.
Complete documentation is available here.
$ npm install gitty
Run the the unit and integration tests with:
$ npm test
var git = require('gitty');
// identifying the repo and using defaults
var myRepo = git('/path/to/repo');
// explicitly passing the path to the git client
var myRepo2 = git('/path/to/repo2', '/not-in-path/bin/git');
// specifying an options object (note all properties are optional)
var myRepo3 = git('/path/to/repo3', {
gitpath: '/not-in-path/bin/git', // optional
largeOperations: ['log', 'ls-files', 'status', 'commit'], // optional
largeOperationsMaxBuffer: 1024 * 6000 // optional
});
Now you can call this instance of Repository
's methods. For example, to
execute git log
for myRepo
, you would do:
myRepo.log(function(err, log) {
if (err) return console.log('Error:', err);
// ...
});
Gitty no longer supports username/password authentication over SSH. You should be using SSH keys for that.
myRepo.push('origin', 'master', function(err, succ) {
if (err) return console.log(err);
// ...
});
Gitty was written by Emery Rose Hall (emery@deadcanaries.org)
Licensed under LGPLv3 license
FAQs
A Node.js wrapper for the Git CLI
The npm package gitty receives a total of 12,408 weekly downloads. As such, gitty popularity was classified as popular.
We found that gitty 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.