Recent

Author Topic: Compiling libraries w/ PAS2JS for use in JS apps  (Read 3466 times)

MG

  • New Member
  • *
  • Posts: 12
Compiling libraries w/ PAS2JS for use in JS apps
« on: October 22, 2020, 08:48:45 pm »
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

  • Newbie
  • Posts: 1
Re: Compiling libraries w/ PAS2JS for use in JS apps
« Reply #1 on: December 17, 2020, 01:22:17 pm »
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

  • New Member
  • *
  • Posts: 12
Re: Compiling libraries w/ PAS2JS for use in JS apps
« Reply #2 on: February 04, 2021, 10:50:48 pm »
Great, thanks, I'll check it out.

 

TinyPortal © 2005-2018