Getting Started with iRules LX, Part 4: NPM & Best Practices
Great article! Much better than Unable to find LX Workspaces or LX Plugins (f5.com) (K29350240) that is unclear where to install the modules. Too bad that F5 stopped developing the iRules LX as mentioned in Node.js version does not support new functions and optimizations (f5.com) and as of now I do not think there are any plans adding this in BIG-IP 20.x/NEXT. As Nginx uses njs for scripting (njs scripting language (nginx.org)) that is node js it would make sense for me F5 to develop this for classic BIG-IP and NEXT as nginx can be even added to XC Distributed Cloud with vk8s(virtual kubernetes) as to make use of the njs. As an example after adding the needed packages I tried using nodemailer as a smtp email relay/proxy on F5 BIG-IP 17.1 with LX following NodeJS SMTP relay example (brevo.com) as I did not want the old TCL code at f5-irule-editor/iRuler/Templates/SMTP Proxy.txt at master · f5devcentral/f5-irule-editor · GitHub but there were compilation errors about the async function being unexpected token function and I tried rpc or the streaming option , but as it did not work I moved on.