shahradelahi/storage-box
shahradelahi/storage-box has 440 GitHub stars and 10 forks. GitHot measured -1 stars in 24 hours and -1 in 7 days. Last checked 2026-11-20 05:50 UTC. Last push 2026-11-18.
What you can do
- Support for Node.js, Bun and the browser
- Support for multiple storage types (Memory, File, Browser-storage, etc.)
- Multiple data structures (Literals, Hashes, Lists, etc.)
- Time-based key expiration
Gemessener Sternzuwachs
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
Über uns
💾 A Memory-based key-value storage system for JavaScript.
DatenREADME.md
Original
StorageBox
storage-box is a JavaScript library designed for the purpose of storing data in various structures across multiple storage systems. The primary goal of this library is to offer a straightforward and effective method for data storage.
👀 Features
- Simple API
- Support for Node.js, Bun and the browser
- Support for multiple storage types (Memory, File, Browser-storage, etc.)
- Multiple data structures (Literals, Hashes, Lists, etc.)
- Time-based key expiration
⚙️ Installation
npm i storage-box
📖 Usage
import { Client } from 'storage-box';
const client = new Client();
client.setex('key', 'value', 2);
console.log(client.get('key')); // value
// time to live in milliseconds
console.log(client.ttl('key', true)); // 2000
// after 3 seconds
setTimeout(() => {
console.log(client.get('key')); // undefined
}, 3e3);
📦 Storage Types
📚 Documentation
For all configuration options, please see the API docs.
🤝 Contributing
You can contribute to this project by opening an issue or a pull request on GitHub. Feel free to contribute, we care about your ideas and suggestions.