2023-02-28 22:17:12 +01:00
2022-05-02 14:15:34 +02:00
2021-03-08 12:04:18 +01:00
2023-02-06 11:15:06 +01:00
2021-03-08 00:18:27 +01:00
2021-03-11 22:18:00 +01:00
2023-02-06 11:15:06 +01:00
2023-02-27 17:10:00 +01:00
2023-02-06 11:15:06 +01:00
2023-02-17 00:53:35 +01:00
2022-11-15 02:16:38 +01:00
2023-02-28 16:13:30 +01:00
2023-02-28 16:13:30 +01:00
2022-11-15 02:16:38 +01:00
2022-05-02 14:15:34 +02:00
2023-02-28 22:17:12 +01:00

unstorage

npm version npm downloads Github Actions Codecov bundle

💾 Unstorage provides an async Key-Value storage API with conventional features like multi driver mounting, watching and working with metadata, dozens of built-in drivers and a tiny core.

👉 documentation

Features

  • Designed for all environments: Browser, NodeJS, and Workers
  • Lots of Built-in drivers
  • Asynchronous API
  • Unix-style driver mounting to combine storages
  • Default in-memory storage
  • Tree-shakable utils and tiny core
  • Auto JSON value serialization and deserialization
  • Banary and raw value support
  • State snapshots and hydration
  • Storage watcher
  • HTTP Storage with built-in server

Usage

Install unstorage npm package:

# yarn
yarn add unstorage

# npm
npm install unstorage

# pnpm
pnpm add unstorage
import { createStorage } from "unstorage";

const storage = createStorage(/* opts */);

await storage.getItem("foo:bar"); // or storage.getItem('/foo/bar')

👉 Check out the the documentation for usage information.

Contribution

  • Clone repository
  • Install dependencies with pnpm install
  • Use pnpm dev to start jest watcher verifying changes
  • Use pnpm test before pushing to ensure all tests and lint checks passing

License

MIT

Description
🌍 💾 Universal Storage Layer
Readme MIT 14 MiB
Languages
TypeScript 99.6%
JavaScript 0.4%