# batch-include-guards

> Add header include guard to files in bulk

Latest version **0.0.2** (published 2020-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install batch-include-guards
pnpm add batch-include-guards
yarn add batch-include-guards
bun add batch-include-guards
```

Provides the command `batch-include-guards`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-07-28 |
| First published | 2020-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 2 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mgen |
| Maintainers | mgenware |
| Keywords | include guard |

## Links

- npm: https://www.npmjs.com/package/batch-include-guards
- Repository: https://github.com/mgenware/batch-include-guards
- Issues: https://github.com/mgenware/batch-include-guards/issues
- npm.io page: https://npm.io/package/batch-include-guards

## Dependencies (2)

- [slash](https://npm.io/package/slash.md) ^3.0.0
- [globby](https://npm.io/package/globby.md) ^11.0.1

## Recent versions

- 0.0.2 (latest) — 2020-07-28
- 0.0.1 — 2020-07-11

## README

# 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:

```sh
cd <project_root>

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

Before:

```cpp
code
```

After:

```cpp
#ifndef A_B_FILENAME_H
#define A_B_FILENAME_H

code

#endif // A_B_FILENAME_H
```

---
_Source: https://npm.io/package/batch-include-guards · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
