Blog Image

12.07.2024

How to run Javascript in Make

Unleash the full power of your workflow with 1001fx's Execute Javascript feature.

Running JavaScript code on our servers is a powerful capability that allows developers to offload processing and create outstanding functionality in Make.

In this blog post, we'll explore how to use code/executejavascript to execute code.

Here are some examples for code:

How to use

  1. Create a new scenario
  2. Add 1001fx "Execute JavaScript" to your scenario
  3. Paste the code into the module
  4. Run your scenario

Hints

  • Remember that you need to return the result that you want to return.
  • Add "const yourVariable = YOUR_INPUT_HERE;" to your script and fill in from previous steps in make.
  • Use our playground to test your code before running it.

Playground

Open playground

executejs.png

Available Packages

CaseNPM PackageURL
axiosaxioshttps://www.npmjs.com/package/axios
cheeriocheeriohttps://www.npmjs.com/package/cheerio
crypto-jscrypto-jshttps://www.npmjs.com/package/crypto-js
handlebarshandlebarshttps://www.npmjs.com/package/handlebars
joijoihttps://www.npmjs.com/package/joi
lodashlodashhttps://www.npmjs.com/package/lodash
momentmomenthttps://www.npmjs.com/package/moment
moment-timezonemoment-timezonehttps://www.npmjs.com/package/moment-timezone
mustachemustachehttps://www.npmjs.com/package/mustache
node-fetchnode-fetchhttps://www.npmjs.com/package/node-fetch
uuiduuidhttps://www.npmjs.com/package/uuid
ulidulidhttps://www.npmjs.com/package/ulid
underscoreunderscorehttps://www.npmjs.com/package/underscore
yupyuphttps://www.npmjs.com/package/yup
zodzodhttps://www.npmjs.com/package/zod