Clearscript Javascript 'require' functionality
问题 I am attempting to write a C# wrapper for the Twilio Programmable Chat tool. The library provided is for JS clients. I thought that using a tool like ClearScript (V8) would allow me to wrap the js as needed. The example code on the site is const Chat = require('twilio-chat'); // Make a secure request to your backend to retrieve an access token. // Use an authentication mechanism to prevent token exposure to 3rd parties. const accessToken = '<your accessToken>'; Chat.Client.create(accessToken)