Coder Social home page Coder Social logo

rainwayapp / node-clangffi Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 1.0 939 KB

Generate Typescript FFI bindings for C/C++ libraries using libclang and ffi-napi.

License: MIT License

JavaScript 5.93% TypeScript 93.71% C 0.37%
generator ffi ffi-bindings nodejs libclang typescript

node-clangffi's Introduction

node-clangffi

CI CD

Tools to generate Typescript FFI bindings for C/C++ libraries using libclang and ffi-napi.

Features

See the following packages for more information:

  • clangffi - cli tool for generating bindings

npm

npm

Contributing

Contributions are welcome, but guidelines for how to get involved are not in place yet. As a result, please start by opening an issue. Thanks for your interest!

Coding Guidelines

  • This project contains a .prettierrc configuration file to help your editor contribute consistent code. For vscode, use this extension.
  • We use conventional commits to help with automatic semantic versioning. Please ensure your commit messages follow this format.

Helpful commands

  • npm run bootstrap to bootstrap the project.
  • npx lerna add <dep> packages/<project> [--dev] to add a dep (--dev makes it a dev dep).
  • npm run build builds all packages.
  • npm run clangffi runs clangffi (remember to build first).
  • npm run generate-dogfood re-generates our libclang bindings using libclang-bindings (ourself).

To get started:

# clone and enter the project directory
git clone --config core.autocrlf=false --recursive https://github.com/rainwayapp/node-clangffi.git
cd node-clangffi

# install deps
npm i

# bootstrap and build
npm run bootstrap && npm run build

# bootstrap once last time to ensure typings are present
npm run bootstrap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.