Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xvpr/vpr-bin2fmt
A utility program to convert binary data to a formatted string of the user's choice
https://github.com/0xvpr/vpr-bin2fmt
binary-format c cpp data-formatting string-formatter tool tooling utility
Last synced: 8 days ago
JSON representation
A utility program to convert binary data to a formatted string of the user's choice
- Host: GitHub
- URL: https://github.com/0xvpr/vpr-bin2fmt
- Owner: 0xvpr
- License: mit
- Created: 2022-02-24T09:00:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-19T04:39:12.000Z (over 1 year ago)
- Last Synced: 2024-11-09T01:54:06.011Z (2 months ago)
- Topics: binary-format, c, cpp, data-formatting, string-formatter, tool, tooling, utility
- Language: C
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vpr-bin2fmt
This project aims to provide a tool for the conversion of a file to
formatted double quoted string or a c-style array.## Build instructions
Linux/WSL/MSYS
```bash
git clone https://github.com/0xvpr/vpr-bin2fmt vpr-bin2fmt
cd vpr-bin2fmt
cmake -B build
cmake --build build
# sudo cmake --build build --target install # uncomment if you want it available globally
```
Windows
```powershell
git clone https://github.com/0xvpr/vpr-bin2fmt vpr-bin2fmt
cd vpr-bin2fmt
cmake.exe -B build
cmake.exe --build build
# cmake.exe --build build --target install # uncomment if you want it available globally
```## Example Usage
```bash
Usage:
vpr-bin2fmt [ optional switches ]positional arguments:
path/to/executableoptional switches:
-c,-C output as c-style char array
-s,-S output as double quoted string
example :
vpr-bin2fmt path/to/file-1 path/to/file2 -s
```