{"id":15296113,"url":"https://github.com/oleshkooo/npm-cpace","last_synced_at":"2025-10-24T20:48:32.916Z","repository":{"id":57307185,"uuid":"479779145","full_name":"oleshkooo/npm-cpace","owner":"oleshkooo","description":"cpace - nodemon for C/C++ files. Monitor for any changes in your [.c] and [.cpp] application and automatically restart it - perfect for development","archived":false,"fork":false,"pushed_at":"2023-03-16T16:01:22.000Z","size":2038,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T02:54:06.573Z","etag":null,"topics":["autoreload","c","cli","cpace","cpp","development","monitor","nodemon","reload","restart","terminal"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oleshkooo.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-09T16:16:03.000Z","updated_at":"2025-02-25T13:03:23.000Z","dependencies_parsed_at":"2024-10-15T01:20:52.333Z","dependency_job_id":"7526b6fc-ee49-4a2e-a698-772e68baef17","html_url":"https://github.com/oleshkooo/npm-cpace","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":0.08333333333333337,"last_synced_commit":"5ed6ac785d43dc8050efeee915cdaeb6cf786c0b"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleshkooo%2Fnpm-cpace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleshkooo%2Fnpm-cpace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleshkooo%2Fnpm-cpace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleshkooo%2Fnpm-cpace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleshkooo","download_url":"https://codeload.github.com/oleshkooo/npm-cpace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248773848,"owners_count":21159520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoreload","c","cli","cpace","cpp","development","monitor","nodemon","reload","restart","terminal"],"created_at":"2024-09-30T18:09:26.224Z","updated_at":"2025-10-24T20:48:27.872Z","avatar_url":"https://github.com/oleshkooo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./assets/logo.png\" alt=\"cpace logo\" width=\"300px\"\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n# cpace\n\n`cpace` is a tool that helps develop [.c] and [.cpp] based applications by automatically restarting them when file changes are detected. The package was built to automate the compilation and running of [.exe] files when writing C/C++ applications.\n\n\u003cbr\u003e\n\n# Requirements\n\n-   `Node.js` (to use `cpace`) (**[how to install](https://nodejs.dev/learn/how-to-install-nodejs) / [download](https://nodejs.dev/download)**)\n-   `gcc`/`g++` (to compile the project) (**[how to install](https://www.youtube.com/watch?v=sXW2VLrQ3Bs) / [download](https://sourceforge.net/projects/mingw)**)\n\n\u003cbr\u003e\n\n# Installation\n\nThe best way to install cpace is using [npm](https://www.npmjs.com/package/cpace) _(pnpm or yarn are also suitable)_:\n\n```bash\nnpm install cpace --global\n# or\nnpm i cpace -g\n```\n\n\u003cbr\u003e\n\ncpace will be installed globally to your system path.\nWith a global installation cpace will be available anywhere.\n\n\u003cbr\u003e\n\nYou can also install cpace as a development dependency:\n\n```bash\nnpm install cpace --save-dev\n# of\nnpm i cpace -D\n```\n\nWhen installed locally, cpace will not be available in your system path, and you will not be able to use it directly from the command line.\n\n\u003cbr\u003e\n\n# Usage\n\ncpace wraps your application, so you just have to pass your file name (and directory, if needed):\n\n```bash\n# for C files\ncpace ./file.c\n\n# for C++ files\ncpace ./file.cpp\n```\n\n\u003cbr\u003e\n\nCLI help: `-h` (or `--help`)\n\n```bash\ncpace -h\n# or\ncpace --help\n```\n\n\u003cbr\u003e\n\nCompilation without starting the program: `-c` (or `--compileOnly`)\n\n```bash\ncpace ./file.cpp -c\n# or\ncpace ./file.cpp -compileOnly\n```\n\n\u003cbr\u003e\n\nBrowsing a directory and compiling a specific file: `-d` (or `--directory`)\n\n```bash\n# file name must be after the -d argument\ncpace ./file.cpp -d ./src\n```\n\n\u003cbr\u003e\n\n# Update\n\nTo update the **local** installation:\n\n```bash\nnpm update cpace\n```\n\n\u003cbr\u003e\n\nTo update the **global** installation:\n\n```bash\nnpm update -g cpace\n```\n\n\u003cbr\u003e\n\n# Notice\n\ncpace was written to restart C and C++ applications. If your script exits cleanly, cpace will continue to monitor the file and restart it if there are any changes. If there is an error, cpace will notify you in the console.\n\n_Tested on MacOS Monterey, MacOS Ventura, Windows 10, Windows 11._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleshkooo%2Fnpm-cpace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleshkooo%2Fnpm-cpace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleshkooo%2Fnpm-cpace/lists"}