Socket
Book a DemoInstallSign in
Socket

@luisafk/minifs

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luisafk/minifs

An in-memory filesystem-like data structure.

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
0
Created
Source

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

FAQs

Package last updated on 27 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts