open-index/open-npm huggingface dataset:
npm package: @movizon/fsa-chunk-store
Description: File System Access API chunk store that is abstract-chunk-store compliant, with filesystem-like folder structure.
Author: Richard T
Latest version: 1.0.0

# @movizon/fsa-chunk-store

#### [File System Access API](https://web.dev/file-system-access/) chunk store that is [abstract-chunk-store](https://github.com/mafintosh/abstract-chunk-store) compliant

[![abstract chunk store](https://cdn.rawgit.com/mafintosh/abstract-chunk-store/master/badge.svg)](https://github.com/mafintosh/abstract-chunk-store)

## Install

```
yarn add @movizon/fsa-chunk-store
```

## Usage
```js
import FSAChunkStore from '@movizon/fsa-chunk-store'
const chunks = FSAChunkStore(10)

chunks.put(0, new Buffer('01234567890'), function (err) {
  if (err) throw err
  chunks.get(0, function (err, chunk) {
    if (err) throw err
    console.log(chunk) // '01234567890' as a buffer
  })
})
```

## Options

- `length`: Total size of the chunk store (optional, default: `Infinity`)
- `name`: Top-level directory to create for this store (optional, default: `default`)
- `rootDir`: Root directory handle (optional, default: `navigator.storage.getDirectory()`)
- `files`: Array of File objects (optional, `{ path, length }`)

## About

Originally based on https://github.com/SocketDev/fs-access-chunk-store but improved to support filesystem-like folder structures, to allow external user manipulation of files.

## License

MIT.
npm package: @movk-repo/shared
Description: 工具函数、常量、类型定义等
Author: yixuan
Latest version: 1.1.0

# 快速开始 {#start}

<VPBadges name="@movk-repo/shared" />

工具函数、常量、类型定义等

[查看文档](https://mhaibaraai.github.io/zh/shared)

[更新日志](https://mhaibaraai.github.io/zh/shared/changelog)

## 📦 安装 {#installation}

::: code-group

```sh [pnpm]
pnpm add @movk-repo/shared
```

```sh [npm]
npm add @movk-repo/shared
```

```sh [yarn]
yarn add @movk-repo/shared
```

:::