# npm-package-integrity

> npm-package-integrity =====================

Latest version **1.1.1** (published 2016-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-package-integrity
pnpm add npm-package-integrity
yarn add npm-package-integrity
bun add npm-package-integrity
```

Provides the command `npm-package-integrity`.

## 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 | 1.1.1 |
| Published | 2016-06-17 |
| First published | 2016-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Matt Brennan |
| Maintainers | financial-times |

## Links

- npm: https://www.npmjs.com/package/npm-package-integrity
- Repository: https://github.com/quarterto/npm-package-integrity
- Homepage: https://github.com/quarterto/npm-package-integrity#readme
- Issues: https://github.com/quarterto/npm-package-integrity/issues
- npm.io page: https://npm.io/package/npm-package-integrity

## Recent versions

- 1.1.1 (latest) — 2016-06-17
- 1.0.1 (one) — 2016-06-17
- 1.1.0 — 2016-06-17
- 1.0.0 — 2016-06-17

## README

npm-package-integrity
=====================

basic prepublish test for an npm package's integrity. runs `npm pack` then attempts to `require` the resulting tarball.

how
---

`npm install --save-dev npm-package-integrity`, and in your package.json:

```json
{
	"scripts": {
		"prepublish": "npm-package-integrity"
	}
}
```

why
---

there's an [npm bug](https://github.com/npm/npm/issues/5082) that's particularly painful in node 6 and causes missing files in your package in certain circumstances. i've been bitten by it a few times. the packages are broken enough that `require` just doesn't work, so that's a good prepublish test.

who
---

matt brennan. MIT licence

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