💾 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.
See the codeUnstorage 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
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.
You can use the nightly release channel to try the latest changes in the main branch via unstorage-nightly.
If directly using unstorage in your project:
{
"devDependencies": {
"unstorage": "npm:unstorage-nightly"
}
}
If using unstorage via another tool in your project:
{
"resolutions": {
"unstorage": "npm:unstorage-nightly"
}
}
pnpm installpnpm dev to start vitest watcher verifying changespnpm test before pushing to ensure all tests and lint checks passingOverall
Maintained
Code review
npm
Latest release
Releases this year
(top 24 of 52)
3,979 followers · starred Sep 2021
1,730 followers · starred Nov 2023
325 followers · starred Apr 2024
3,281 followers · starred Dec 2024
💾 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.
See the codeUnstorage 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
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.
You can use the nightly release channel to try the latest changes in the main branch via unstorage-nightly.
If directly using unstorage in your project:
{
"devDependencies": {
"unstorage": "npm:unstorage-nightly"
}
}
If using unstorage via another tool in your project:
{
"resolutions": {
"unstorage": "npm:unstorage-nightly"
}
}
pnpm installpnpm dev to start vitest watcher verifying changespnpm test before pushing to ensure all tests and lint checks passingOverall
Maintained
Code review
npm
Latest release
Releases this year
(top 24 of 52)
3,979 followers · starred Sep 2021
1,730 followers · starred Nov 2023
325 followers · starred Apr 2024
3,281 followers · starred Dec 2024