@jsonjoy.com/fs-core
Core filesystem primitives: Node, Link, File, Superblock
Last updated 4 months ago by GitHub Actions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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.80.1                                ...           latest (15 days ago)

50 Versions

  • 4.80.1                                ...           15 days ago
  • 4.80.0                                ...           2 months ago
  • 4.79.0                                ...           2 months ago
  • 4.78.1                                ...           2 months ago
  • 4.78.0                                ...           2 months ago
  • 4.77.0                                ...           2 months ago
  • 4.76.0                                ...           2 months ago
  • 4.75.0                                ...           3 months ago
  • 4.74.0                                ...           3 months ago
  • 4.73.0                                ...           3 months ago
  • 4.72.2                                ...           3 months ago
  • 4.72.1                                ...           3 months ago
  • 4.72.0                                ...           3 months ago
  • 4.71.1                                ...           3 months ago
  • 4.71.0                                ...           3 months ago
  • 4.70.0                                ...           3 months ago
  • 4.69.1                                ...           3 months ago
  • 4.69.0                                ...           3 months ago
  • 4.68.2                                ...           3 months ago
  • 4.68.1                                ...           4 months ago
  • 4.68.0                                ...           4 months ago
  • 4.67.0                                ...           4 months ago
  • 4.66.1                                ...           4 months ago
  • 4.66.0                                ...           4 months ago
  • 4.65.0                                ...           4 months ago
  • 4.64.0                                ...           5 months ago
  • 4.63.0                                ...           5 months ago
  • 4.62.0                                ...           5 months ago
  • 4.61.0                                ...           5 months ago
  • 4.60.0                                ...           5 months ago
  • 4.59.0                                ...           5 months ago
  • 4.58.0                                ...           5 months ago
  • 4.57.8                                ...           5 months ago
  • 4.57.7                                ...           6 months ago
  • 4.57.6                                ...           6 months ago
  • 4.57.5                                ...           6 months ago
  • 4.57.4                                ...           6 months ago
  • 4.57.3                                ...           6 months ago
  • 4.57.2                                ...           7 months ago
  • 4.57.1                                ...           8 months ago
  • 4.57.0                                ...           8 months ago
  • 4.56.11                                ...           9 months ago
  • 4.56.10                                ...           10 months ago
  • 4.56.9                                ...           10 months ago
  • 4.56.8                                ...           10 months ago
  • 4.56.7                                ...           10 months ago
  • 4.56.4                                ...           10 months ago
  • 4.56.2                                ...           10 months ago
  • 4.56.1                                ...           10 months ago
  • 4.56.0                                ...           10 months ago
Downloads
Total 112
Today 0
This Week 0
This Month 99
Last Day 0
Last Week 5
Last Month 3
Dependencies (3)
Dev Dependencies (7)

© 2010 - cnpmjs.org x YWFE | Home | YWFE