Package from Javascript to be uploaded during execution

Hi. I need to execute a javascript in plugin javascrip toolbox…
However, this javascript needs a package…
How, how to download and install a javascript package within toolbox or bubble before execute it…
for example, out of bubble… I should
1st) download the package
2nd) npm install nfe-io
3rd) then execute something like this

var nfe = require(‘nfe-io’)
nfe.serviceInvoices.create(… so on…

please, any help?

Not practically possible, that package is to be run in servers, and you’d need to build a server side action in a plugin to do that.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.