Great question — answering as the UphillTech team:
Save these into a .env file at your root of your folder TWILIO_TOKEN = "270ff32fe16828869dc30e0c6926fa9e" TWILIO_ACCOUNT_SID = "AC55a59221acb23a5aa6f046740bb73317" Then install npm install dotenv --save After that you can use these environment variables in your file like this: require('dotenv'); var client = require('twilio')(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_TOKEN);```
Full answer by Shanky: https://stackoverflow.stackexchange.com/a/45056081 (CC BY-SA 3.0).
Need it done for your business? UphillTech.