Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A node.js git library with some cool features like synchronizing all the branches from a git remote to a local subdir
Apart from simply exposing git(dir, args, callback, [options])
there are a couple of nice utilities.
npm install gits
var gits = require('gits');
API:
gits.align(dir, callback)
- runs git reset, recovery commands and git pull in a directorygits.sync(origin, branch, dir, callback)
- clones/pulls origin/branch into dirgits.bsync(origin, target, branches, prefix, callback)
- clones multiple branches (or all if branches is null) from origin into subdirectories under target dir. 'prefix' is prepended to subdirectory namesgits.bsyncAll(origin, target, prefix, callback)
- clones all branches from origin into targetgits.currentBranch(dir, callback)
- returns the current branch of a directorygits.git(dir, argsArray, callback, [options])
- just runs git command linegits.remotes(dir, callback)
- returns a hash with the remotes in the repogits.log(dir, opts, callback)
- lists all the commits under a directorygits.prune(dir, callback)
- runs "git remote prune origin" for a directorygits.pruneAll(basrDir, callback)
- runs "git remote prune origin" against all subdirectories of "baseDir"Options to git()
:
options.env
- hash of environment variables to pass to git
. Default is process.env
.options.logger
- alternative to console
.MIT
FAQs
A node.js git library with some cool features like synchronizing all the branches from a git remote to a local subdir
The npm package gits receives a total of 216 weekly downloads. As such, gits popularity was classified as not popular.
We found that gits demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.