An open API service indexing awesome lists of open source software.

https://github.com/sysgears/tracefs

Intercepts Node fs calls and outputs them to log file if the path has the substring specified in TRACEFS env var
https://github.com/sysgears/tracefs

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## Tracefs

[![npm version](https://badge.fury.io/js/tracefs.svg)](https://badge.fury.io/js/tracefs)
[![Twitter Follow](https://img.shields.io/twitter/follow/sysgears.svg?style=social)](https://twitter.com/sysgears)

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

## Usage

```bash
npm install tracefs
```

```bash
tracefs -e :pathSubstring node ./myscript
```

or

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

Output example:
![Alt text](/screenshot.png?raw=true 'Output Example')

## License

Copyright © 2019 [SysGears (Cyprus) Limited](http://sysgears.com). This source code is licensed under the [MIT](LICENSE) license.