Perhaps Synode from the mORMot ?!
https://github.com/synopse/mORMot/tree/master/SyNode
https://synopse.info/forum/viewforum.php?id=22
DonAlfredo thanks so much
i download the project and build SM on Mac and it works fine
but the problem now with the "libmozjs-52.dylib" the size is "24 MB"
thanks again for posting the links
Under windows you can use the Microsoft scripting engine to do that. For KOL I wrote a complete example that you can find here:
http://members.chello.nl/t.koning8/kolaxscript.zip
You need the ocx, just the dll's You can choose between vbs and js.
It is easy to rewrite for LCL. It also still works with KOL in Lazarus.
it's a very good example but as my project is for Mac , win , linux
i think something like SpiderMonkey or V8 is good
Besides the v8 Delphi wrapper given in the first post :
https://github.com/zolagiggszhou/v8delphiwrapper
You also have a Chakracore wrapper for Delphi and Free Pascal :
https://github.com/tondrej/chakracore-delphi
There's a Javascript engine for delphi based on spidermonkey :
https://code.google.com/archive/p/delphi-javascript/
v8delphiwrapper not compatible with FPC
and chakracore library is big there's no way i'm using it
and about SM the synopse implementation is really good and i tested it and it works fine
but as i said the library size is "24MB" compare to besen which is like "2 MB" or even V8 "13 MB"
here is a javascript engine written in pascal no external libraries required https://github.com/BeRo1985/besen
i know about it , if you read my first post you will see that
i found besen engine but it's old and not supported anymore ( will use it if i didn't find any newer alternative )
one of my friends point me to
https://www.apexdatasolutions.net/products/musebut i don't know where to download it
i think i'll try to implement "synopse SpiderMonkey" into my project as it's working very well
and i'll do the same with >> "besen" << cuz it's the easiest and smallest
now i'm searching for >> V8 Wrapper for FPC << not in priority
again thanks guys for your time and comments