nodesource/ah-fs

Name: ah-fs

Owner: NodeSource

Description: Tracks async hook events related to file system operations.

Created: 2017-01-23 17:50:25.0

Updated: 2018-05-20 11:31:33.0

Pushed: 2017-10-26 15:57:54.0

Homepage: https://nodesource.github.io/ah-fs

Size: 1213

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ah-fs build status

Tracks async hook events related to file system operations.

Installation
npm install ah-fs
API
FileSystemActivityCollector

Instantiates a FileSystemActivityCollector.

Extends ActivityCollector and thus exposes the same public API with added functionality.

Parameters

fileSystemActivityCollector.fileSystemActivities

Getter that returns all activities related to file system operations.

Returns Map<string, object> fileSystemActivities

fileSystemActivityCollector.cleanAllResources

Cleans up all captured resources which means that they are processed, meaningful data extracted and the reference to the actual resource removed so it can be GCed.

Resources are cleaned during after and destroy events, therefore calling this function only affects those resources for which none of these events have fired yet.

Returns FileSystemActivityCollector fileSystemActivityCollector

fileSystemActivityCollector.stringifyBuffers

Finds all buffers that are part of the resources, including arguments passed to callbacks and stringifies their value for the supplied encodings.

Parameters

Returns FileSystemActivityCollector fileSystemActivityCollector

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.