# post-checkout-npm-install

> npm install when package.json dependencies have changed post-checkout

Latest version **0.1.0** (published 2019-12-03) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install post-checkout-npm-install
pnpm add post-checkout-npm-install
yarn add post-checkout-npm-install
bun add post-checkout-npm-install
```

Provides the command `post-checkout-npm-install`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-12-03 |
| First published | 2019-12-03 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.0.0 |
| Dependencies | 0 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Felipe Pontes |
| Maintainers | felipemfp |
| Keywords | javascript, js, npm, post, git, post-checkout, install, husky |

## Links

- npm: https://www.npmjs.com/package/post-checkout-npm-install
- Repository: https://github.com/felipemfp/post-checkout-npm-install
- Homepage: https://github.com/felipemfp/post-checkout-npm-install#readme
- Issues: https://github.com/felipemfp/post-checkout-npm-install/issues
- npm.io page: https://npm.io/package/post-checkout-npm-install

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-12-03

## README

# post-checkout-npm-install

[<img alt="npm version" src="https://img.shields.io/npm/v/post-checkout-npm-install.svg" height="20">](https://www.npmjs.com/package/post-checkout-npm-install)
[<img alt="build status" src="https://img.shields.io/travis/felipemfp/post-checkout-npm-install.svg" height="20">](https://travis-ci.org/felipemfp/post-checkout-npm-install)

[post-checkout-npm-install] runs `npm install` when package.json dependencies have
changed post-merge or post-rebase.

```sh
npm install post-checkout-npm-install --save-dev
```

## Husky Usage

[husky] makes git hooks easy.

```js
// package.json
{
  "husky": {
    "hooks": {
      "post-checkout": "post-checkout-npm-install",
    }
  }
}
```

## Node Usage

```js
const postNpmInstall = require("post-checkout-npm-install");

postNpmInstall([previousHead, newHead, isBranchCheckout], useCI);
```

[husky]: https://github.com/typicode/husky
[post-checkout-npm-install]: https://github.com/felipemfp/post-checkout-npm-install

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