Is there a way we can display the version of Express, Jade, Stylus.. that we have installed in our nodejs. Capture the current version and display it in the browser.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basically a simple
does what you want: It gives you a list of all installed modules, their versions, and their dependencies with the same info recursively.
As you have asked for a solution that works in your browser: The easiest solution will probably be to run that command as a child process from Node.js using the child_process module, and pipe the child’s stdout property to the response stream of an http server.
Then you get the output of
npm lsinside your browser.The basic frame looks like this:
Of course you can make it nicer, more comfortable, and so on 🙂
Update from comments: