🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

ldd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldd

Programmatic interface to ldd

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ldd

Programmic interface to ldd

npm install ldd

Usage

const ldd = require('ldd')

// prints the shared libraries used by node
ldd(process.execPath, console.log)

API

ldd(path, callback)

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'
}, {
  ...
}]

list = ldd.sync(path)

Same as above but sync

License

MIT

FAQs

Package last updated on 26 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts