{"library":"mock-storage","type":"library","category":null,"description":"A lightweight in-memory mock implementation of the Web Storage API (Storage interface) for testing. Version 1.1.0. Fully compliant with TypeScript's Storage interface, uses ES2015 Proxy and Map. Ideal for unit testing localStorage/sessionStorage in Node.js or browser environments without side effects. Differentiates from alternatives like jest-localstorage-mock by being pure TypeScript with a simple API.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mock-storage","imports":["import { mockStorage } from 'mock-storage'","import type { Storage } from 'mock-storage'","import { mockStorage } from 'mock-storage'"]},{"cmd":"yarn add mock-storage","imports":[]},{"cmd":"pnpm add mock-storage","imports":[]}],"homepage":"https://github.com/TylorS/mock-storage#readme","github":"https://github.com/TylorS/mock-storage","docs":null,"changelog":null,"pypi":null,"npm":"mock-storage","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}