batch-include-guards
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

batch-include-guards

Add header include guards to files in bulk.

Usage

  • Go to the root directory of your project.
  • Use a glob to filter out the files to be added with include guards.

Example:

cd <project_root>

# Batch add include guards for all header files in `/a/b/`.
npx batch-include-guards "./a/b/**/*.h"

Before:

code

After:

#ifndef A_B_FILENAME_H
#define A_B_FILENAME_H

code

#endif // A_B_FILENAME_H

Readme

Keywords

Package Sidebar

Install

npm i batch-include-guards

Weekly Downloads

7

Version

0.0.2

License

MIT

Unpacked Size

6.68 kB

Total Files

8

Last publish

Collaborators

  • mgenware