JSPM

lsof-mac-fast

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22076F
  • License MIT

Fast lsof for regular files on Mac OS X

Package Exports

  • lsof-mac-fast

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lsof-mac-fast) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 ... })