0.0.8 • Published 5 years ago

randomfschanger v0.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Build Status

LIBRARY IN DEVELOPMENT, NOT READY TO USE

Random Filesystem Changer

This library provides a way to randomly change a directory in order to mimic filesystem changes. The idea is to use this to stress test components in applications that operate on filesystem changes. It runs on a separate process, to attempt to mimic typical conditions of concurrent reads and writes.

Installation

npm install @catdawg/randomfschanger

Usage

'''

const randomfschanger = new RandomFSChanger(tmpDir.name, { seed: 1234, // random seed, to replicate the same file changes workerCount: 4 // how many workers will be independently writing on the filesystem, to test load. });

randomfschanger.start(); // wait for the changer to work await randomfschanger.stop(); // waits for confirmation from the changer that it actually stopped. '''

Tests

npm run dist - fork.js needs to be generated. npm test

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago