module.exports = function(RED) { function NextcloudConfigNode(config) { RED.nodes.createNode(this, config); this.name = config.name; this.baseUrl = config.baseUrl; this.username = config.username; this.password = config.password; } RED.nodes.registerType("nextcloud-config", NextcloudConfigNode, { credentials: { username: { type: "text" }, password: { type: "password" } } }); }