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
- Create a new scenario
- Add 1001fx "Execute JavaScript" to your scenario
- Paste the code into the module
- 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
Available Packages
Case | NPM Package | URL |
---|---|---|
axios | axios | https://www.npmjs.com/package/axios |
cheerio | cheerio | https://www.npmjs.com/package/cheerio |
crypto-js | crypto-js | https://www.npmjs.com/package/crypto-js |
handlebars | handlebars | https://www.npmjs.com/package/handlebars |
joi | joi | https://www.npmjs.com/package/joi |
lodash | lodash | https://www.npmjs.com/package/lodash |
moment | moment | https://www.npmjs.com/package/moment |
moment-timezone | moment-timezone | https://www.npmjs.com/package/moment-timezone |
mustache | mustache | https://www.npmjs.com/package/mustache |
node-fetch | node-fetch | https://www.npmjs.com/package/node-fetch |
uuid | uuid | https://www.npmjs.com/package/uuid |
ulid | ulid | https://www.npmjs.com/package/ulid |
underscore | underscore | https://www.npmjs.com/package/underscore |
yup | yup | https://www.npmjs.com/package/yup |
zod | zod | https://www.npmjs.com/package/zod |