How to find native modules in a node.js dependency tree?
There's a native-modules CLI package for this.
$ npx native-modules
You could simply search for *.node
files, which is the extension used by compiled addons:
find node_modules -type f -name "*.node" 2>/dev/null | grep -v "obj\.target"
If you want to check what shared libraries each addon uses, you could use something like:
find node_modules -type f -name "*.node" 2>/dev/null | grep -v "obj\.target" | xargs ldd