plivo-examples-node
plivo-examples-node copied to clipboard
Remove unnecessary variable 'p'
Looking at the source code it seems like every time you call plivo.RestAPI it updates plivo.options. No new object is created. It always references the same plivo object internally.
var plivo = require('plivo'); var p = plivo.RestAPI(require('./config'));
can be
var plivo = require('plivo').RestAPI(require('./config'));
and plivo can be used throughout the code instead of 'p'