Skip to content
JS
Package

mock-property

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

v1.1.2, 20 Jun 2026MITCommonJSTypes: BundledTestingDev servers and API mocking
$ npm install mock-property

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 617.4k (4 Aug 2026)Low 185.8k (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.

450,558 downloads last week, 1,691,220 in the last month. The 12-month change of +13% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
27 in total
Latest version
1.1.2, 20 Jun 20263 months ago
First published
16 Apr 2022
Last push to GitHub
20 Jun 202696 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
13
Dependents on npm
8

Major versions

  1. v1 first release 1.0.0, 16 Apr 2022

Recent releases

VersionPublished
1.1.220 Jun 2026
1.1.119 Jun 2026
1.1.06 Aug 2024
1.0.321 Oct 2023
1.0.211 Oct 2023
1.0.111 Oct 2023
1.0.016 Apr 2022
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 0.4
Runtimes
-
Unpacked size (npm)
60 kB
Dependencies (8)
gopdhasownisarrayes-errorsobject-inspectdefine-data-propertyfunctions-have-nameshas-property-descriptors
npm install mock-property
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mock-property@1.1.2/
  • unpkghttps://unpkg.com/mock-property@1.1.2/
  • esm.shhttps://esm.sh/mock-property@1.1.2
PackageWeekly downloadsGzipLast releaseModuleComparison
ng-mocks404.6k-6 days agoESM + CommonJS-
sinon-express-mock18.8k-7 years agoCommonJS-
mocked-env75.4k-5 years agoCommonJS-
vitest-canvas-mock819.6k-20 days agoESM + CommonJS-
@kie/mock-github14.3k-4 months agoCommonJS-
jest-localstorage-mock281k-3 years agoESM + CommonJS-
mock-match-media31.2k-11 months agoESM + CommonJS-
@jedmao/redux-mock-store11.5k-6 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.