How to know installed libraries, including versions in a JavaScript node?

Hello,

I’d like to test part of my code locally as I have access to GitHub Copilot and I would like to write some tests. The problem is that I don’t know the versions of the libraries installed in the JavaScript Node so I can reproduce the node config locally.

How can I find out?

Thanks in advance,

Alfredo