node-red-contrib-nostr
Version:
Node-RED nodes for seamless Nostr protocol integration. Features robust WebSocket handling, event filtering, and NPUB-based routing. Built with TypeScript for type safety and extensive testing. Perfect for Nostr automation flows.
14 lines • 437 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
module.exports = function (RED) {
function ExampleNode(config) {
RED.nodes.createNode(this, config);
const node = this;
node.on('input', function (msg) {
msg.payload = config.message;
node.send(msg);
});
}
RED.nodes.registerType("example", ExampleNode);
};
//# sourceMappingURL=example.js.map