1.1.0 • Published 1 year ago

include-static v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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