@franciscokloganb/local-storage-polyfill
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

/@franciscokloganb/local-storage-polyfill/

    Package Sidebar

    Install

    npm i @franciscokloganb/local-storage-polyfill

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    11.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • franciscokloganb