How to use the ffi-napi.types.CString function in ffi-napi

To help you get started, we’ve selected a few ffi-napi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github just-jeb / electron-angular-native / src / app / precompiled-library-link.service.ts View on Github external
constructor() {
    this.lib = new Library(path.resolve(__dirname, 'native-artifacts/precompiled-libraries/simplelib'), {'getLink': [types.CString, []]});
  }

ffi-napi

A foreign function interface (FFI) for Node.js, N-API style

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis