node-localstore-lite
v1.0.0
Published
A lightweight localStorage-like implementation for Node.js using JSON file persistence.
Maintainers
Readme
node-localstore-lite
A lightweight localStorage implementation for Node.js with JSON file persistence.
Perfect for small projects, configs, and quick caching.
📦 Installation
npm install node-localstore-liteOr with yarn:
yarn add node-localstore-lite🚀 Usage
const LocalStorage = require("node-localstore-lite");
// Create or load storage.json
const storage = new LocalStorage("storage.json");
// Store data
storage.setItem("username", "garv123");
// Get data
console.log(storage.getItem("username")); // "garv123"
// Remove key
storage.removeItem("username");
// Clear all
storage.clear();
📊 Badges
👤 Author
Garv
📧 Email: [email protected]
🌐 Portfolio: https://codebygarv.netlify.app/
📄 License
This project is licensed under the MIT License.
