/tracefs

Intercepts Node fs calls and outputs them to log file if the path has the substring specified in TRACEFS env var

Primary LanguageTypeScriptMIT LicenseMIT

Tracefs

npm version Twitter Follow

Traces Node fs calls to files with given path substring and logs requests and results into <tmpdir>/tracefs.log

Usage

npm install tracefs
tracefs -e :pathSubstring node ./myscript

or

tracefs -e trace.log:pathSubstring node ./myscript

Output example: Alt text

License

Copyright © 2019 SysGears (Cyprus) Limited. This source code is licensed under the MIT license.