Skip to content
JS
Package

vitest-localstorage-mock

Auto mock all localstorage and sessionstorage APIs for your Vitest tests

v0.1.2, 8 Mar 2024MITESM onlyTypes: NoneTesting
$ npm install vitest-localstorage-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
61k
+2% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v0.1.2
GitHub stars
13
1 forks
Open issues / PRs
3 / 11
Contributors
-
Commits, last 52 weeks
35

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150kSept 2025Mar 2026Sept 2026High 141.1k (5 May 2026)Low 28.5k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

61,000 downloads last week, 283,400 in the last month. The 12-month change of +2% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.1.2, 8 Mar 20242 years ago
First published
-
Last push to GitHub
24 Sept 2026same day as the snapshot
Repository archived
No
Open issues
3
Open pull requests
11
Commits, last 52 weeks
35
Dependents on npm
0

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
6.0 kB
Dependencies (0)
None
Peer dependencies (1)
vitest
npm install vitest-localstorage-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/vitest-localstorage-mock@0.1.2/
  • unpkghttps://unpkg.com/vitest-localstorage-mock@0.1.2/
  • esm.shhttps://esm.sh/vitest-localstorage-mock@0.1.2
PackageWeekly downloadsGzipLast releaseModuleComparison
jest-localstorage-mock281k-3 years agoESM + CommonJS-
@vitest/mocker71.9m-9 days agoESM only-
mock-local-storage49.6k-3 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.