{"library":"clang-format-node","type":"library","category":null,"description":"clang-format-node is a Node.js wrapper that provides programmatic access to the LLVM project's `clang-format` and `git-clang-format` native binaries. The current stable version is 3.0.2, bundling LLVM clang-format version 22.1.3. This package securely builds and bundles these native binaries directly from official LLVM source code, eliminating third-party binary dependencies and offering full GitHub Actions Attestation and npm Build Provenances for enhanced supply chain security. It also includes separate packages within its monorepo, `clang-format-git` for standalone Git integration without Python, and `clang-format-git-python` for the original Python script wrapper. Release cycles typically align with new LLVM clang-format versions, ensuring access to the latest formatting capabilities and bug fixes. It is inspired by `angular/clang-format` but aims for a more streamlined and secure integration into Node.js and npm workflows.","language":"javascript","status":"active","version":"3.0.2","tags":["javascript","clang-format","clang","cli","format","formatter","lint","linter","cpplint","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install clang-format-node","imports":["import { format } from 'clang-format-node';","import { execClangFormat } from 'clang-format-node';","import { getClangFormatVersion } from 'clang-format-node';","import type { FormatOptions } from 'clang-format-node';"]},{"cmd":"yarn add clang-format-node","imports":[]},{"cmd":"pnpm add clang-format-node","imports":[]}],"homepage":"https://clang-format-node.lumir.page","github":"https://github.com/lumirlumir/npm-clang-format-node","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/clang-format-node","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/clang-format-node/compatibility"}}