clang-format-node
Last updated
Last updated
Node repackaging of the clang-format
native binary. (The CORE package.)
If you want to use clang-format
without git-clang-format
, simply follow the installation guide below. If you need git-clang-format
, refer to the clang-format-git
or clang-format-git-python
.
You can use the commands below to run clang-format
.
clang-format-node
is an alias forclang-format
and works in exactly the same way.
clangFormatPath
The ABSOLUTE path to the clang-format
executable binary based on the OS platform and architecture.
Alias: clangFormatNodePath
. See clangFormatNodePath
.
Version: v1.2.0
Initial release.
clangFormatNodePath
Alias for clangFormatPath
.
Alias: clangFormatPath
. See clangFormatPath
.
Version: v1.2.0
Initial release.
getClangFormatPath
Returns the ABSOLUTE path to the 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 clang-format
executable binary.
Error
: Throws an error if the executable binary is not found for the specified OS platform and architecture.
Alias: getClangFormatNodePath
. See getClangFormatNodePath
.
Version: v1.2.0
Initial release.
getClangFormatNodePath
Alias for getClangFormatPath
.
Alias: getClangFormatPath
. See getClangFormatPath
.
Version: v1.2.0
Initial release.