1. @nodelib/fs.macchiato
A set of classes for easy testing of built-in structures of FS
@nodelib/fs.macchiato
Package: @nodelib/fs.macchiato
Created by: nodelib
Last modified: Fri, 28 Jul 2023 17:49:36 GMT
Version: 2.0.0
License: MIT
Downloads: 642
Repository: https://github.com/nodelib/nodelib

Install

npm install @nodelib/fs.macchiato
yarn add @nodelib/fs.macchiato

@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.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin