# nodejs-fs-explorer-ui

File Explorer Svelte component for the [NodeJS](https://nodejs.org) [filesystem](https://nodejs.org/docs/latest/api/fs.html) API for using in the browser, i.e. for browser libraries that implement the NodeJS FS API such as [zenfs](https://github.com/zen-fs/) and [memfs](https://github.com/streamich/memfs).

## Install

```sh
npm install nodejs-fs-explorer-ui
```

## Usage

```svelte
<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:

```sh
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:

```sh
pnpm pack
```

To create a production version of the library:

```sh
pnpm run build
```

You can preview the production build with `pnpm run preview`.

## Publishing

```sh
pnpm publish
```
