Initial commit, 90% there

This commit is contained in:
mdares
2025-12-02 16:27:21 +00:00
commit 755028af7e
7353 changed files with 1759505 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
module.exports = function(RED) {
const XLSX = require('xlsx');
function BookNode(config) {
RED.nodes.createNode(this,config);
var node = this;
node.on('input', function(msg) {
var option = {
type: typeof msg.payload === "string" ? "string" : "buffer",
raw: config.raw,
// dateNF: "yyyy-mm-dd",
password: undefined,
cellNF: true,
cellStyles: true,
WTF: false,
};
msg.payload = XLSX.read(msg.payload, option);
node.send(msg);
});
}
RED.nodes.registerType("book",BookNode);
}