SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Add or Modify Node Modules with Twilio Functions

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

  1. Access the Functions Configuration page in Console.
  2. Click the red Plus sign (+) icon to add a new module.
    Modules_01_400.png 
  3. Add the module name and desired version number, and then click Save.
    NOTE: Enter * as the version number to always use the latest version.Modules_02_400.png 

Update a Module on your Project

  1. Access the Functions Configuration page in Console.
  2. 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.
    Modules_04_400.png 

Remove a Module from your Project

  1. Access the Functions Configuration page in Console.
  2. Click the X icon next to the desired module to delete it, and then click Save.
    Modules_05_400.png 
Have more questions? Submit a request
Powered by Zendesk