UNPKG

create-bablojs

Version:

CLI tool to quickly scaffold a new BABLOJS project. BABLOJS is a lightweight, fast, and scalable Single Page Application framework built with vanilla JavaScript, providing React-like features including Virtual DOM, hooks, routing, and component-based arch

29 lines 632 B
export const storage = { set(key, value) { localStorage.setItem(key, value); }, get(key) { return localStorage.getItem(key); }, remove(key) { localStorage.removeItem(key); }, clear() { localStorage.clear(); }, keys() { return Object.keys(localStorage); }, values() { return Object.values(localStorage); }, length() { return localStorage.length; }, getItem(key) { return localStorage.getItem(key); }, setItem(key, value) { localStorage.setItem(key, value); }, }