@jsonjoy.com/fs-fsa
File System Access API implementation backed by core filesystem primitives
Last updated 21 days ago by GitHub Actions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jsonjoy.com/fs-fsa 
SYNC missed versions from official npm registry.

@jsonjoy.com/fs-fsa

File System Access API implementation backed by @jsonjoy.com/fs-core primitives.

Provides a File System Access API implementation that works with the Superblock filesystem abstraction.

Installation

npm install @jsonjoy.com/fs-fsa

Usage

import { fsa } from '@jsonjoy.com/fs-fsa';

const { dir, core, FileSystemObserver } = fsa({ mode: 'readwrite' });

// Create a file
const fileHandle = await dir.getFileHandle('hello.txt', { create: true });
const writable = await fileHandle.createWritable();
await writable.write('Hello, World!');
await writable.close();

// Read a file
const file = await fileHandle.getFile();
const contents = await file.text();
console.log(contents); // 'Hello, World!'

License

Apache-2.0

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
Dev Dependencies (7)

Copyright 2013 - present © cnpmjs.org | Home |