slint/api/sixtyfps-node/lib/index.js
Olivier Goffart 13c7e0dec8 Begin working on a Node API
Currently, the followinf command in the example/nodetest directory works:
    npm install ../../api/sixtyfps-node && node main.js
2020-06-03 17:33:05 +02:00

15 lines
233 B
JavaScript

native = require('../native/index.node');
require.extensions['.60'] = function (module, filename) {
var c = native.load(filename);
module.exports.show = function () {
c.show();
}
}
module.exports = native;