Skip to content

Installation

clang-format-node - Repository | npm

NPM Version  Node Current

Node wrapper for clang-format native binary inspired by angular/clang-format. (The CORE package.)

sh
# Global
$ npm install -g clang-format-node
# Local
$ npm install -D clang-format-node
sh
# Global
$ pnpm add -g clang-format-node
# Local
$ pnpm add -D clang-format-node
sh
# Global
$ yarn global add clang-format-node
# Local
$ yarn add --dev clang-format-node
sh
# Global
$ bun add -g clang-format-node
# Local
$ bun add -d clang-format-node

clang-format-git - Repository | npm

NPM Version  Node Current

Node wrapper for git-clang-format Python script as a standalone native binary to allow execution without a Python dependency.

sh
# Global
$ npm install -g clang-format-git
# Local
$ npm install -D clang-format-git
sh
# Global
$ pnpm add -g clang-format-git
# Local
$ pnpm add -D clang-format-git
sh
# Global
$ yarn global add clang-format-git
# Local
$ yarn add --dev clang-format-git
sh
# Global
$ bun add -g clang-format-git
# Local
$ bun add -d clang-format-git

clang-format-git-python - Repository | npm

NPM Version  Node Current

Node wrapper for git-clang-format Python script. This package requires Python3 as a dependency.

sh
# Global
$ npm install -g clang-format-git-python
# Local
$ npm install -D clang-format-git-python
sh
# Global
$ pnpm add -g clang-format-git-python
# Local
$ pnpm add -D clang-format-git-python
sh
# Global
$ yarn global add clang-format-git-python
# Local
$ yarn add --dev clang-format-git-python
sh
# Global
$ bun add -g clang-format-git-python
# Local
$ bun add -d clang-format-git-python