# cpp-file-watcher

> This is a simple cpp file watcher that will compile and run your cpp file on every change.

Latest version **1.0.7** (published 2023-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install cpp-file-watcher
pnpm add cpp-file-watcher
yarn add cpp-file-watcher
bun add cpp-file-watcher
```

Provides the command `cpp-file-watcher`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2023-09-06 |
| First published | 2023-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Martin Matei |
| Maintainers | martin_matei |
| Keywords | cpp, file watcher, compile, run, automation, javascript |

## Links

- npm: https://www.npmjs.com/package/cpp-file-watcher
- npm.io page: https://npm.io/package/cpp-file-watcher

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2023-09-06
- 1.0.5 — 2023-09-06
- 1.0.4 — 2023-09-04
- 1.0.3 — 2023-09-03
- 1.0.2 — 2023-09-02
- 1.0.1 — 2023-09-02
- 1.0.0 — 2023-09-02

## README

# cpp-file-watcher
Nodemon for C++ files. Watches C++ files in a directory for changes and compiles to object code. 

# Why cpp-file-watcher
The library was built to automate the generation of C++ object files when writing `.cpp` programs. Generating `.o` files was a problem for me as I would need to run the following lines of code over and over again:

`g++ -o output_file_name source_file.cpp`

then run `./output_file_name` to execute the program.

This library would reduce the need to type and run the `g++` command manually.

# Requirements

1. `nodejs` must be installed on your machine.
2. `g++` must be installed on your machine.

# Installation

From the terminal (Ctrl + T to invoke) run the following 

`npm install -g cpp-file-watcher` 

# Usage
 
 Once installed globally, navigate to the folder containing `.cpp` files. 

 On the command line within the folder containing the `.cpp` files type

 `cpp-file-watcher <filename>.cpp`

 An object file `.o` with the same name as the `.cpp` file will be created. 

# My Github

This is the place where you can follow my work or maybe just say hi.

[Martin Matei](https://github.com/MateiMartin)

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