npm.io
0.1.0 • Published 8 months ago

nodejs-fs-explorer-ui

Licence
—
Version
0.1.0
Deps
2
Size
16 kB
Vulns
0
Weekly
0

nodejs-fs-explorer-ui

File Explorer Svelte component for the NodeJS filesystem API for using in the browser, i.e. for browser libraries that implement the NodeJS FS API such as zenfs and memfs.

Install

npm install nodejs-fs-explorer-ui

Usage

<script>
  import FileExplorer from "nodejs-fs-explorer-ui";
  import fs from "@zenfs/core";
</script>

<FileExplorer {fs} />

Developing

Once you've installed dependencies with npm install (or pnpm install or yarn), start a development server:

pnpm run dev

Everything inside src/lib is part of the library, everything inside src/routes can be used as a showcase or preview app.

Building

To build and pack:

pnpm pack

To create a production version of the library:

pnpm run build

You can preview the production build with pnpm run preview.

Publishing

pnpm publish

Keywords