How to add a new NPM library
In the task editor, you can see the "dependencies" section on the left.
Click on "Add dependency", then you can search for the NPM package you want to install. Currently, only the latest version are available for install.
Note that the dependencies are added on the app level, so if you add package A to one task, it is immediately available to all the other tasks in the same app.
Adding node libraries will increase the memory consumption of the task run. So make sure to only add libraries that you are using.
Required NPM libraries for app integrations
Certain app integrations may require a library in order to properly make API calls/interact. For example, with mongo integration requires mongodb library. See Shypyard SDK for more details.
Common NPM libraries
Making HTTP request
Axios, Request, node-fetch, got
Day.js, Moment.js, moment-timezone
Handlebars, liquid, EJS
Mysql, MongoDB, redis, pg
Generate unique ID
Note that Shypyard by default already comes with axios. You can access it this way: