2.1.0 • Published 5 months ago

@luisafk/minifs v2.1.0

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

MiniFS

An in-memory filesystem-like data structure.

Installation

You can install MiniFS using npm, or your preferred package manager.

npm i @luisafk/minifs

Usage

import { MiniFS } from "@luisafk/minifs";

const fs = new MiniFS();

fs.writeFile("foo/bar.txt", "Hello, World"); // true

fs.readDirectory("foo"); // ["bar.txt"]
fs.readFile("foo/bar.txt"); // "Hello, World"

Development

First, clone the repository and install the dependencies.

git clone https://github.com/lafkpages/minifs.git
cd minifs
bun install

Then, configure Git hooks.

git config core.hooksPath .githooks

Running tests

Tests are automatically run before every commit. You can also run them manually:

bun test
2.1.0

5 months ago

1.1.0

5 months ago

2.0.0

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago