Twilio Functions allows users to import Node modules/packages from NPM into their project. Modules can be added, removed, and updated in Console. This guide walks users through how to manage modules.
Included Modules
Twilio Functions includes two modules by default:
- XMLDom: A Node.js implementation of the W3C Document Object Model (DOM)
- twilio-node: Twilio's Node.js helper library
Add a New Module to your Project
- Access the Functions Configuration page in Console.
- Click the red Plus sign (+) icon to add a new module.
- Add the module name and desired version number, and then click Save.
NOTE: Enter*
as the version number to always use the latest version.
Update a Module on your Project
- Access the Functions Configuration page in Console.
- Click the VERSION field to update the version number, and then click Save.
NOTE: Use*
for the version number to always use the latest version.
Remove a Module from your Project
- Access the Functions Configuration page in Console.
- Click the X icon next to the desired module to delete it, and then click Save.