@jsonjoy.com/fs-core
Core filesystem primitives: Node, Link, File, Superblock
Last updated 21 days ago by GitHub Actions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jsonjoy.com/fs-core 
SYNC missed versions from official npm registry.

@jsonjoy.com/fs-core

Core filesystem primitives for building in-memory and virtual filesystems.

Overview

This package provides the core data structures for representing a virtual filesystem:

  • Node - Represents an i-node (index node), containing file data and metadata
  • Link - Represents a hard link pointing to a Node
  • File - Represents an open file descriptor
  • Superblock - The root of a virtual filesystem, managing nodes and links

Installation

npm install @jsonjoy.com/fs-core

Usage

import { Superblock, DirectoryJSON } from '@jsonjoy.com/fs-core';

// Create a new filesystem
const fs = new Superblock();

// Or create from a JSON structure
const json: DirectoryJSON = {
  '/file.txt': 'Hello, World!',
  '/dir/nested.txt': 'Nested content',
};
const fs = Superblock.fromJSON(json);

Current Tags

  • 4.57.1                                ...           latest (21 days ago)

11 Versions

  • 4.57.1                                ...           21 days ago
  • 4.57.0                                ...           21 days ago
  • 4.56.11                                ...           a month ago
  • 4.56.10                                ...           3 months ago
  • 4.56.9                                ...           3 months ago
  • 4.56.8                                ...           3 months ago
  • 4.56.7                                ...           3 months ago
  • 4.56.4                                ...           3 months ago
  • 4.56.2                                ...           3 months ago
  • 4.56.1                                ...           3 months ago
  • 4.56.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (7)

Copyright 2013 - present © cnpmjs.org | Home |