node-webidl
Bindings generator for Node Addons given a WebIDL document
Last updated 4 months ago by chancesnow .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-webidl 
SYNC missed versions from official npm registry.

Node WebIDL

NPM Version Build Status NPM Dependencies Maintenance Status

Bindings generator for Node Addons given a WebIDL document.

Installation

$ npm install --global node-webidl

Usage

Generate a Node Addon binding given a C header and annotated Web IDL.

$ webidl-bind [options] [files]

Options

-V, --version print the version number
-o, --out-file <path> redirect generated output to a file
-h, --help print usage information

Binding to C

Given a C source implementation file, e.g. add.h:

float addition(float x, float y) {
  return x + y;
}

Write a Web IDL interface describing how to interop with Node, e.g. add.webidl:

[Bind="add.h"]
interface Add {
  [Bind="addition"]
  float add(float x, float y);
};

Generate bindings:

$ webidl-bind -o add.c add.webidl

License

BSD-3-Clause License

Copyright © 2020 Chance Snow. All rights reserved.

Current Tags

  • 0.1.4                                ...           latest (4 months ago)

5 Versions

  • 0.1.4                                ...           4 months ago
  • 0.1.3                                ...           4 months ago
  • 0.1.2                                ...           4 months ago
  • 0.1.1                                ...           4 months ago
  • 0.1.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |