@ponomarevlad/local-storage-polyfill
v0.1.0-module.4
Published
The "localStorage" polyfill for Node.js.
Downloads
30
Maintainers
Readme
Local Storage Polyfill
The "localStorage" polyfill for Node.js.
Polyfill
// jest.setup.js
import '@mswjs/local-storage-polyfill/global'
Node.js
import { Storage } from '@mswjs/local-storage-polyfill'
const storage = new Storage()
storage.setItem('name', 'John')