mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00

Currently, the followinf command in the example/nodetest directory works: npm install ../../api/sixtyfps-node && node main.js
15 lines
233 B
JavaScript
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;
|
|
|
|
|
|
|