Programmic interface to ldd
npm install ldd
const ldd = require('ldd')
// prints the shared libraries used by node
ldd(process.execPath, console.log)
Calls ldd
on the path and calls the callback with an array looking like this
[{
name: 'name of the shared lib',
path: 'path/to/resolved/shared/lib',
address: 'memory-address of shared lib'
}, {
...
}]
Same as above but sync
MIT