0.1.0-module.4 • Published 2 years ago

@ponomarevlad/local-storage-polyfill v0.1.0-module.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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')