include-static

Inlines files to c/c++ header files

MIT 3 个版本
安装
npm install include-static
yarn add include-static
pnpm add include-static
bun add include-static
README

include-static

Inlines file contents to a c/c++ header file

npm install -g include-static

Usage

include-static name file.ext output.h

# or if you have multiple ones

include-static name1 file1.ext name2 file2.ext output.h

Produces a header file similar to this

unsigned char name1[] = {
  ... content ...
};

size_t name1_len =  ... contentLength ...;

License

MIT

版本列表
1.1.0 2023-01-05
1.0.1 2023-01-03
1.0.0 2023-01-03