slint/examples/nodetest/main.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

14 lines
225 B
JavaScript

// Run with
// npm install ../../api/sixtyfps-node && node main.js
//import "sixtyfps";
require("sixtyfps");
//import * as myModule from "../cpptest/hello.60";
let hello = require("../cpptest/hello.60");
hello.show();