Local Storage Polyfill
The "localStorage" polyfill for Node.js.
Acknowledgments
This repository is a fork from @mswjs/local-storage-polyfill.
All credits are due to the authors of that repository.
Usage in test environments (polyfill)
// jest.setup.js or vitest.setup.js
import '@mswjs/local-storage-polyfill/global'
Usage in Node.js environments
import { Storage } from '@mswjs/local-storage-polyfill'
const storage = new Storage()
storage.setItem('name', 'John')