
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Module for Node.js which converts between Windows (Win32) and Cygwin/Mingw/MSYS2 path styles, similar to the cygpath utility program found in Cygwin and MSYS2.
Convert any path to a unix-style path. For example,
C:\Program Files (x86)\Steam\steamapps would get converted to
/c/Program Files (x86)/Steam/steamapps.
options.convertDriveLetter defaults to true. When true, drive letters (eg
C:) will be converted to an fs-root single-character path component
(eg /c/). This behavior is modeled after that of Cygwin, MSYS2, etc. To
skip this behavior and only convert path separators (ie. slashes), pass
{ convertDriveLetter: false }.
function toUnix(
inputStr,
options?: {
convertDriveLetter?: boolean;
}
): string;
Convert any path to a Win32-style path. For example,
/c/Program Files (x86)/Steam/steamapps would get converted to
C:\Program Files (x86)\Steam\steamapps.
options.convertDriveLetter defaults to true. When true, an fs-root
single-character path component (eg /c/) will be treated as (and converted
to) a drive letter (eg C:). This behavior is modeled after that of Cygwin,
MSYS2, etc. To skip this behavior and only convert path separators (ie.
slashes), pass { convertDriveLetter: false }.
function toWindows(
inputStr,
options?: {
convertDriveLetter?: boolean;
}
): string;
Convert any path to a Win32-style path but with forward slashes. For example,
/c/Program Files (x86)/Steam/steamapps would get converted to
C:/Program Files (x86)/Steam/steamapps.
options.convertDriveLetter defaults to true. When true, an fs-root
single-character path component (eg /c/) will be treated as (and converted
to) a drive letter (eg C:). This behavior is modeled after that of Cygwin,
MSYS2, etc. To skip this behavior and only convert path separators (ie.
slashes), pass { convertDriveLetter: false }.
function toMixed(
inputStr,
options?: {
convertDriveLetter?: boolean;
}
): string;
MIT
FAQs
convert between windows and cygwin/mingw/msys2 path styles
The npm package cygpath receives a total of 3 weekly downloads. As such, cygpath popularity was classified as not popular.
We found that cygpath demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.