2.2.7 • Published 4 months ago

@xmcl/system v2.2.7

Weekly downloads
7
License
MIT
Repository
github
Last release
4 months ago

Common Module

npm version Downloads Install size npm Build Status

A unified API to read directory or zip.

Support both nodejs and browser.

You can do read operations for zip or directory in same API:

import { openFileSystem } from "@xmcl/system";

let filePath = "/path/to/dir/"
const fs = await openFileSystem(filePath);
fs.readFile("a.txt"); // read /path/to/dir/a.txt

let zipPath = "/path/to/file.zip"
const fs = await openFileSystem(zipPath);
fs.readFile("a.txt"); // read a.txt in the file.zip!
2.2.7

4 months ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.6

1 year ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.6-alpha.1

4 years ago

1.0.6-alpha.0

4 years ago

1.0.5

4 years ago