@createlumina/system
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Common Module

Version made for Lumina projects. Original credits goes to Voxelum/minecraft-launcher-core-node

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 '@createlumina/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!

Package Sidebar

Install

npm i @createlumina/system

Weekly Downloads

38

Version

1.0.0

License

MIT

Unpacked Size

61 kB

Total Files

15

Last publish

Collaborators

  • padowyt2