Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Install Git for Windows by npm.
Install Git for Windows from mirror
npm i -g git-win --git4win_mirror=https://npm.taobao.org/mirrors/git-for-windows
Install Git for Windows for specify version whith flags to use by calling the installer
npm i -g git-win --git-version=2.19 -- /COMPONENTS="icons,icons\\quicklaunch,ext,ext\\shellhere,ext\\guihere,assoc,assoc_sh"
const gitWin = require("git-win");
gitWin.toPosix("C:/Program Files/Git/bin/bash"); // `/bin/bash`
gitWin.toPosix("C:/Program Files/Git/mingw000"); // `/mingw64`
gitWin.toPosix("C:/Users"); // `/c/Users`
gitWin.toWin32("~/xxxxxxx"); // `%HOME%\xxxxxxx`
gitWin.toWin32("/bin/bash"); // `C:\Program Files\Git\usr\bin\bash`
gitWin.toWin32("/mingw000"); // `C:\Program Files\Git\mingw64`
gitWin.toWin32("/tmp/xxxx"); // `C:\Users\****\AppData\Local\Temp\xxxx`
Show install directory of Git
The gitWin.resolve()
method resolves a sequence of paths into an path.
/mingw32
path prefix will be convert to real path nameBase on gitWin.resolve()
but return an Windows style path.
%HOME%
Base on gitWin.resolve()
but return an POSIX style path.
Show directory name of MinGW
Show cygdrive path prefix
FAQs
Install Git for Windows by npm.
The npm package git-win receives a total of 16,125 weekly downloads. As such, git-win popularity was classified as popular.
We found that git-win 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.