I am currently using axios through npm import axios from 'axios'
Is there o possibility to console.log the axios version after the whole application has been built?
You could execute a bash command from nodejs to get an output of npm ls for axios.
const { exec } = require('child_process');
exec('npm ls | grep axios', (err, stdout, stderr) => {
if (err) {
return;
}
console.log(`Axios package: ${stdout}`);
console.log(`stderr: ${stderr}`);
});