0.0.2 • Published 4 years ago

batch-include-guards v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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
0.0.2

4 years ago

0.0.1

4 years ago