tuananh/camaro

Question: Template extraction

jonsherrard opened this issue · 1 comments

Hi There!

Thanks again for Camaro. It's so lovely, but unfortunately I have to work in a Node 10 environment.

I wonder if in your travels you've come across any libraries that use a similar XPath template API. that Camaro uses, or is it uniquely your design?

Thank you for being so generous with your time!

Hi,

worker_threads in Node 10 is experimental behind a flag --experimental-worker. You can try to see if it works for you by running node --experimental-worker index.js.

Any version prior v5 would work on Node 10. It's just that the performance gains with worker_threads is just too good to ignore :)

I wonder if in your travels you've come across any libraries that use a similar XPath template API. that Camaro uses, or is it uniquely your design?

I'm aware of another project that does the transformation in a pretty unique way: cruftless. I do mention about it here https://github.com/tuananh/camaro#similar-projects

However, their template is not xpath base. The xpath template is pretty unique I think. The reason I created this was at the time, I was working on an API gateway that has to deal with third parties XML all the times so it becomes bore to write code manually for the transformation. And I need it to be fast.