Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Git log parser for Node.JS
npm install gitlog
var gitlog = require('../')
, options = { repo: __dirname + '/test-repo-folder'
, number: 20
, author: 'Dom Harrington'
, fields: [ 'hash'
, 'abbrevHash'
, 'subject'
, 'authorName'
, 'authorDateRel'
]
}
gitlog(options, function(error, commits) {
// Commits is an array of commits in the repo
console.log(commits)
})
The location of the repo, required field.
The number of commits to return, defaults to 10.
The author who's commits to return.
An array of fields to return from the log, here are the possible options:
Defaults to 'abbrevHash', 'hash', 'subject' and 'authorName'.
This module works by executing a child process (using child_process.exec()
) to the git
executable, then parsing the stdout into commits. This is done using the --pretty
command line option which allows you to provide a custom formatter to git log
. To enable easy parsing the format is delimited by a tab (\t
) character.
FAQs
Git log parser for Node.JS
The npm package gitlog receives a total of 83,308 weekly downloads. As such, gitlog popularity was classified as popular.
We found that gitlog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.