
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
The gitstat
Node module streams paths of changed files tracked by a local Git repository.
Read orginal output of the underlying git status -uno -z
file by file:
var gitstat = require('gitstat'), status
status = gitstat('.')
status.on('readable', function () {
var chunk
while ((chunk = status.read()) !== null) {
console.log('%s', chunk)
}
})
Pipe filenames of added and/or modified files:
var gitstat = require('gitstat')
gitstat('.', 'AM')
.pipe(process.stdout)
A path to a local git repository.
Optionally configure which filenames should be emitted by passing Git statuses ("M|A|D|R|C|U"
) as String of undefined length. For example:
gitstat('.', 'AM')
This would return a readable stream that emits filenames of all added and/or modified files.
With the default mode (undefined
), not filenames, but the original output of git status -uno -z
is emitted file by file. For details please refer to man git-status
.
This function returns a Readable stream. On the first read this stream executes git status -uno -z
and begins emitting paths according to mode. Untracked files are ignored.
FAQs
stream git status
We found that gitstat 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.