New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clang-tidy

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clang-tidy

A JavaScript packaging of clang-tidy

  • 19.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
0
Weekly downloads
 
Created
Source

clang-tidy

This project is a JavaScript wrapper for the clang-tidy tool, a linter and static code analyzer for C/C++ code based on LLVM. It allows easy access to clang-tidy through Node.js, automating platform-specific binary selection and execution.

Features

  • Cross-Platform Compatibility: Automatically selects the correct clang-tidy binary based on your operating system (Linux, macOS, Windows) and architecture (x64, arm64).

  • Simple Command-Line Interface: Use clang-tidy directly from your terminal with Node.js without manually managing binaries.

  • Error Handling: Provides clear error messages if the tool is not available for your platform.

Installation

To use this package, first install it as a global dependency:

npm install -g clang-tidy

This makes the clang-tidy command available globally in your environment.

Usage

Once installed, you can use clang-tidy as you would normally from the command line:

clang-tidy ...

You can pass any arguments that clang-tidy supports. The command will execute using the appropriate binary for your platform.

How It Works

The script automatically detects the platform and architecture of your machine, such as:

  • linux_x64
  • darwin_arm64
  • win32_x64

Based on this information, it locates the appropriate clang-tidy binary from the binaries directory. If a matching binary isn't found, it throws an error with instructions to file an issue for unsupported platforms.

Platform Support

The following platforms are currently supported:

  • Linux (x64)
  • macOS (x64 & arm64)
  • Windows (x64)

If your platform is not supported, the error message will direct you to file an issue on the repository.

Contributing

If you'd like to add support for a new platform or improve this package, feel free to submit an issue or a pull request on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Keywords

FAQs

Package last updated on 11 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc