mirror of
https://github.com/boku7/Loki
synced 2026-06-06 15:24:27 +00:00
14 lines
245 B
JavaScript
14 lines
245 B
JavaScript
const fs = require('fs');
|
|
|
|
// Define file path
|
|
const filePath = "a.b";
|
|
|
|
// Read file into a byte array
|
|
fs.readFile(filePath, (err, data) => {
|
|
if (err) throw err;
|
|
|
|
let a = require("./scexec/build/Debug/api.node");
|
|
a.run_array(data);
|
|
});
|
|
|