{"library":"dom-storage","type":"library","category":null,"description":"A W3C-compliant DOM Storage (localStorage and sessionStorage) implementation for Node.js, allowing browser-oriented unit tests to run server-side. Version 2.1.0 is stable with no recent releases. It supports in-memory and file-backed storage with configurable strict stringification and JSON whitespace. Unlike alternatives like node-localstorage, this is synchronous and does not emit Storage events. Ideal for simple test mocking, not production use.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install dom-storage","imports":["const Storage = require('dom-storage');","const store = new Storage(null, { strict: true }); store.setItem('key', 'val');","const store = new Storage('./db.json', { strict: false, ws: '  ' });"]},{"cmd":"yarn add dom-storage","imports":[]},{"cmd":"pnpm add dom-storage","imports":[]}],"homepage":"https://git.coolaj86.com/coolaj86/dom-storage.js","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"dom-storage","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}