koffi
Version:
Fast and simple C FFI (foreign function interface) for Node.js
18 lines (13 loc) • 347 B
Markdown
This is a simple example to bundle a CLI node.js app that uses Koffi, using [yao-pkg](https://github.com/yao-pkg/pkg).
To run the app, execute the following:
```sh
cd examples/yao-pkg
npm install
npm start
```
You can bundle the script and the native modules with the following command
```sh
cd examples/yao-pkg
npm install
npm run bundle
```