Skip to Main Content
Integration


This is an IBM Automation portal for Integration products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.


Status Functionality already exists
Workspace API Connect
Created by Guest
Created on Jan 22, 2023

Import Node.js Modules

There are many Modules and libraries that would be extremly helpful for Gatewayscript development.

Data manipulation would be easier to handle when we have more functions to process them without resulting to create work-arounds.

Idea priority Low
  • Guest
    Reply
    |
    Feb 21, 2023

    We do not have any plans on supporting arbitrary Node.js modules on the Gateway due to any number of security vulnerability that could expose in addition to perofrmance and supportability concerns.

    With that DataPower firmware implements GatewayScript with a modular approach. These modules or libraries can be loaded on demand by the application. This implementation supports an extendable system with a high degree of isolation between modules. GatewayScript supports the CommonJS 1.0 Module format. CommonJS 1.0 is the CommonJS specifications define programming interfaces that address how modules are written to be interoperable among systems. You can create custom modules by following the CommonJS specifications and can access custom modules based on precedence rules for require modules. If the module complies with the module specification, it loads and runs. Modules must also comply with the APIs and restrictions in the DataPower appliance. For example, a module cannot arbitrarily access the file system. Also IBM will not “support” any 3rd party libs if the issue is not related to DataPower.

    So in summary the option here is to find a module that is CommonJS 1.0 compliant and import it with something like require('local:///path/to/file.js') and use it that way.

    https://www.ibm.com/docs/en/datapower-gateway/10.5?topic=gateway-programming-model-gatewayscript