Node.js libraries

Wednesday, July 19, 2017 3:27:50 AM

I am exploring the idea of using Rapise for automation and am wondering about Javascript library support.  

 

Would it be possible to integrate with Node.js libraries? For example Mongodb JS APIs:  https://www.npmjs.com/package/mongodb

 

If so, how would the libraries be included?

 

1 Replies
Friday, July 21, 2017 3:33:53 PM
Avatar
re: zephyrmil on Wednesday, July 19, 2017 3:27:50 AM

Hi Daniel

Unfortunately the current version of Rapise JavaScript is baselined at version ES3, so it is limited to a subset of the NodeJS libraries because they increasingly use ES5/ES6.

The reason that Rapise uses ES3 is because we use the Windows Scripting Host (WSH), which gives us native COM/ActiveX/.NET integration that we use in Rapise. Pure v8/node has nothing like that.

A future possible solution is some kind of hybrid approach where we can implement a module for Rapise integration. So Rapise creates NodeJS process and talks to it through pipe or shared file. We are doing some POCs on this for the future.

I hope that provides some clarity.
Regards

Adam

Statistics
  • Started: Wednesday, July 19, 2017 3:27:50 AM
  • Last Reply: Friday, July 21, 2017 3:33:53 PM
  • Replies: 1
  • Views: 562