Compiling libraries w/ PAS2JS for use in JS apps lazarus / 76-Pas2JS ---------------------------------------------------------------------- MG · 2020-10-22 18:48 Can Pas2JS compile an FPC/Delphi library so that its functions can be called by a JavaScript or Node app? All the examples seem to use rtl.run() to execute a full application. But what I'd like to do is import the Pas2JS compiled libraries into a Node app (Electron or React Native) and call the functions in them directly. Any info would be appreciated! ---------------------------------------------------------------------- imperyal · 2020-12-17 12:22 Please check this thread: http://pas2js.38893.n8.nabble.com/Pas2js- Call-functions-from-other-JS-file-td2027.html I think Michael Van CanneytReply's post answers your question... ---------------------------------------------------------------------- MG · 2021-02-04 21:50 Great, thanks, I'll check it out.