The link only talks about converting their examples to CommonJS.
But you want to use their SDK, and I don't know whether that follows CommonJS rules.
You can try and see what happens.
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support & Fixpack team lead
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
https://stamm-wilbrandt.de/en/blog/------------------------------
Original Message:
Sent: Thu February 24, 2022 10:24 AM
From: Suresh U
Subject: import node modules into DataPower file system
Thank you, I see below link, do you think this will work
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/sdk-example-javascript-syntax.html
------------------------------
Suresh U
------------------------------
Original Message:
Sent: Thu February 24, 2022 08:15 AM
From: Hermann Stamm-Wilbrandt
Subject: import node modules into DataPower file system
I don't know whether aws-sdk-js is CommonJS compliant or not.
Find what is supported in DataPower GatewayScript here:
https://www.ibm.com/docs/en/datapower-gateway/2018.4?topic=gateway-programming-model-gatewayscript
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support & Fixpack team lead
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
https://stamm-wilbrandt.de/en/blog/