Skip to content

zuzkins/lsof-mac-fast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lsof-mac-fast

is tiny nodejs wrapper around altered version of lsof binary included in Mac OS X. This binary will only analyze regular files and is much faster than the original bundled with the os. More information can be found in the mac-lsof-regular-files-only repository. This library works only on Mac OS X.

#Usage

npm install lsof-mac-fast

Then you can use it like this:

var fastLsof = require('lsof-mac-fast');
var filesToCheck = ['/tmp/doc.docx', '/tmp/sheet.xlsx']; // or [] to analyze all file descriptors currently open
fastLsof.lsof(filesToCheck, function(err, stdout, stderr) { ... do something useful with the result ... })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published