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

Objective

Twilio Functions allows users to import Node modules/packages from NPM into their project. Modules can be added, removed, and updated in Twilio Console. This guide walks users through how to manage modules.

 

Product

Functions

 

Environment

legacy Twilio Console

 

Procedure 

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.
  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. 

 

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.

 

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.
     
Have more questions? Submit a request
Powered by Zendesk