# injectmock

> Inject mock and restore original for javascript property. Useful for unit testing.

Latest version **2.0.0** (published 2016-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install injectmock
pnpm add injectmock
yarn add injectmock
bun add injectmock
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2016-05-14 |
| First published | 2015-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | test, mock, inject, simple |

## Links

- npm: https://www.npmjs.com/package/injectmock
- Repository: https://github.com/okunishinishi/node-injectmock
- Homepage: https://github.com/okunishinishi/node-injectmock#readme
- Issues: https://github.com/okunishinishi/node-injectmock/issues
- npm.io page: https://npm.io/package/injectmock

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2016-05-14
- 1.1.3 — 2015-08-31
- 1.1.2 — 2015-08-08
- 1.1.1 — 2015-08-08
- 1.1.0 — 2015-08-08
- 1.0.4 — 2015-07-13
- 1.0.3 — 2015-07-13
- 1.0.2 — 2015-07-13
- 1.0.1 — 2015-07-13

## README

injectmock
==========

<!---
This file is generated by ape-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/okunishinishi/node-injectmock
[bd_travis_url]: http://travis-ci.org/okunishinishi/node-injectmock
[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-injectmock.svg?style=flat
[bd_license_url]: https://github.com/okunishinishi/node-injectmock/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/okunishinishi/node-injectmock
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/okunishinishi/node-injectmock.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/okunishinishi/node-injectmock.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/okunishinishi/node-injectmock
[bd_gemnasium_shield_url]: https://gemnasium.com/okunishinishi/node-injectmock.svg
[bd_npm_url]: http://www.npmjs.org/package/injectmock
[bd_npm_shield_url]: http://img.shields.io/npm/v/injectmock.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Inject mock and restore original for javascript property.  Useful for unit testing.

<!-- Description End -->




<!-- Sections Start -->
<a name="sections"></a>


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/okunishinishi/node-injectmock/blob/master/LICENSE).

<!-- LICENSE End -->

---
_Source: https://npm.io/package/injectmock · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
