clang-format-git
Last updated
Last updated
Node repackaging of the git-clang-format
Python script as a standalone native binary to allow execution without a Python dependency.
This package already includes clang-format-node
, so there’s no need to install it separately.
You can use the commands below to run git-clang-format
.
clang-format-git
is an alias forgit-clang-format
and works in exactly the same way.
gitClangFormatPath
The ABSOLUTE path to the git-clang-format
executable binary based on the OS platform and architecture.
Alias: clangFormatGitPath
. See clangFormatGitPath
.
Version: v1.2.0
Initial release.
clangFormatGitPath
Alias for gitClangFormatPath
.
Alias: gitClangFormatPath
. See gitClangFormatPath
.
Version: v1.2.0
Initial release.
getGitClangFormatPath
Returns the ABSOLUTE path to the git-clang-format
executable binary based on the OS platform and architecture.
The possible combinations are darwin-arm64
, darwin-x64
, linux-arm
, linux-arm64
, linux-ppc64
, linux-s390x
, linux-x64
, win32-x64
.
Throws an error if the executable is not found.
osPlatform (string
): The current operating system platform. (e.g., darwin
, linux
, win32
)
architecture (string
): The current system architecture. (e.g., arm
, arm64
, ppc64
, s390x
, x64
)
string
: The absolute path to the git-clang-format
executable binary.
Error
: Throws an error if the executable binary is not found for the specified OS platform and architecture.
Alias: getClangFormatGitPath
. See getClangFormatGitPath
.
Version: v1.2.0
Initial release.
getClangFormatGitPath
Alias for getGitClangFormatPath
.
Alias: getGitClangFormatPath
. See getGitClangFormatPath
.
Version: v1.2.0
Initial release.