How to add a custom node package to Creator?

How to add a custom node package to Creator?

I'm attempting to call the Braintree API through Zoho creator by making a custom function in NodeJS. In order to run this code, I need to install the Braintree node package but I can't seem to figure out how to do that. I can upload files but not entire folders (which is what I would need to do). So, is there a way that I can install the Braintree package in order to use the API?

  1. module.exports = async function (context, basicIO )
  2. {
  3.     const braintree = require('braintree');
  4.     const gateway = new braintree.BraintreeGateway({
  5.         environment: braintree.Environment.Sandbox,
  6.         merchantId: 'ID',
  7.         publicKey: 'key',
  8.         privateKey: 'key'
  9.     });

  10. }