package
A set of classes for easy testing of built-in structures of FS
npm install @nodelib/fs.macchiatoGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
7.4 kB
Includes dependencies.
A set of classes for easy testing of built-in structures of FS.
$ npm install @nodelib/fs.macchiatoimport { Stats, StatsMode, Dirent, DirentType } from '@nodelib/fs.macchiato';
const stats = new Stats({ mode: StatsMode.File });
const dirent = new Dirent('file.txt', DirentType.File);StatsCreates a fake instance of fs.Stats. Can accept options to control parameter values.
const stats = new Stats({
mode: StatsMode.File,
ino: 3
});DirentCreates a fake instance of fs.Dirent. Can accept options to control parameter values.
const dirent = new Dirent('file.txt', DirentType.Link);See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.