@nodelib/fs.macchiato
A set of classes for easy testing of built-in structures of FS
Last updated 8 months ago by mrmlnc .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @nodelib/fs.macchiato 
SYNC missed versions from official npm registry.

@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, Dirent } from '@nodelib/fs.macchiato';

const stats = new Stats();
const dirent = new Dirent();

API

Stats

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

const stats = new Stats({
	isSymbolicLink: true,
	ino: 3
});

Dirent

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

const dirent = new Dirent({
	isSymbolicLink: true
});

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.

Current Tags

  • 1.0.2                                ...           latest (8 months ago)

3 Versions

  • 1.0.2                                ...           8 months ago
  • 1.0.1                                ...           9 months ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 8
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |