npm.io
1.3.1 • Published yesterday

@exodus/filesystem

Licence
MIT
Version
1.3.1
Deps
4
Size
7 kB
Vulns
0
Weekly
0

@exodus/filesystem

Module for tracking filesystem info

Install

pnpm add @exodus/filesystem

Usage

This feature is designed to be used together with @exodus/headless. See using the sdk.

UI Side

See using the sdk for more details on basic UI-side setup.

import { selectors } from '~/ui/flux'

const AvailableSpace = () => {
  const freeSpace = useSelector(selectors.filesystem.freeSpace)
  const totalSpace = useSelector(selectors.filesystem.totalSpace)

  return (
    <Text>
      Space available: {freeSpace} / {totalSpace}
    </Text>
  )
}