X Tutup
The Wayback Machine - https://web.archive.org/web/20201025225923/https://github.com/nodejs/webidl-napi
Skip to content
main
Go to file
Code

Latest commit

* Switch from a hyprid approach to an all-templated approach.
* Merge mixins, partials, and dictionaries
* Implement more of the webgpu IDL

Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #9
Reviewed-By: Kai Ninomiya <kainino@chromium.org>
cb97e53

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

WebIDL-NAPI

This project aims to provide a compiler that consumes a WebIDL file and produces a C++ source file containing code that defines the interfaces specified in the WebIDL file using N-API. It is intended to be used as part of a project's build infrastructure.

Installation

Since this is an npm package it requires a version of Node.js to run.

To install, run

npm -g install webidl-napi

Afterwards, the command webidl-napi will become available from the command line.

Usage

Once installed, please run

webidl-napi --help

to see a full list of options. At its most basic, running

webidl-napi -o output.cc input.idl

will process file input.idl and create file output.cc containing the bindings described by input.idl.

About

A WebIDL-to-N-API compiler

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.
X Tutup