@wxn0brp/db-storage-dir
v0.110.1
Published
ValtheraDB Dir Storage
Maintainers
Readme
ValtheraDB Dir Storage
This plugin provides directory-based operations for ValtheraDB.
Installation
npm install @wxn0brp/db-storage-dirOptional dependencies:
npm install json5 yamlNote: When running with Bun, native JSON5/YAML support is used automatically. Set
VALTHERA_DIR_DISABLE_BUN=1to disable Bun's native JSON5/YAML and use thejson5/yamlpackage instead.
Formats
JSON5
json5: Standard JSON5 format.
json5:x: Without {}
JSON
json: Standard JSON format.
json:x: Without {}
YAML
yaml: Standard YAML format.
Usage
import { createFileActions } from "@wxn0brp/db-storage-dir";
const actions = createFileActions("dir", {
format: "json5:x",
})Benchmark
Performance benchmarks are available on the benchmark branch.
License
MIT
