2.0.0 • Published 9 months ago

@nodelib/fs.macchiato v2.0.0

Weekly downloads
46
License
MIT
Repository
github
Last release
9 months ago

@nodelib/fs.macchiato

A set of classes for easy testing of built-in structures of FS.

Install

$ npm install @nodelib/fs.macchiato

Usage

import { Stats, StatsMode, Dirent, DirentType } from '@nodelib/fs.macchiato';

const stats = new Stats({ mode: StatsMode.File });
const dirent = new Dirent('file.txt', DirentType.File);

API

Stats

Creates a fake instance of fs.Stats. Can accept options to control parameter values.

const stats = new Stats({
	mode: StatsMode.File,
	ino: 3
});

Dirent

Creates a fake instance of fs.Dirent. Can accept options to control parameter values.

const dirent = new Dirent('file.txt', DirentType.Link);

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

2.0.0

9 months ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago