Forum > Pas2JS

Compiling libraries w/ PAS2JS for use in JS apps

(1/1)

MG:
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:
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:
Great, thanks, I'll check it out.

Navigation

[0] Message Index

Go to full version