@typed-cstruct/generator
v0.1.2
Published
This package generates TypeScript source code from C header files.
Downloads
298
Readme
@typed-cstruct/generator
This package generates TypeScript source code from C header files.
Usage
Installation
npm install -D @typed-cstruct/generator
CLI
tcgen -h header.h -h another.h generated.ts
API
import { generate } from '@typed-cstruct/generator';
const source = generate('header.h', 'another.h');
License
MIT
This package depends on the rust-bindgen package, which is licensed under the BSD-3-Clause license.