# npm-merge-driver-install

> A package to install npm-merge-driver locally and automatically.

Latest version **3.0.0** (published 2022-02-10) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install npm-merge-driver-install
pnpm add npm-merge-driver-install
yarn add npm-merge-driver-install
bun add npm-merge-driver-install
```

Provides the commands `npm-merge-driver-merge`, `npm-merge-driver-install`, `npm-merge-driver-uninstall`, `npm-merge-driver-is-installed`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2022-02-10 |
| First published | 2018-09-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 34.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | brandonocasey |

## Links

- npm: https://www.npmjs.com/package/npm-merge-driver-install
- Repository: https://github.com/brandonocasey/npm-merge-driver-install
- Issues: https://github.com/brandonocasey/npm-merge-driver-install/issues
- npm.io page: https://npm.io/package/npm-merge-driver-install

## Recent versions

- 3.0.0 (latest) — 2022-02-10
- 4.0.0-1 (next) — 2025-11-07
- 2.0.1 (experimental) — 2020-11-09
- 4.0.0-0 — 2025-11-06
- 2.0.2 — 2021-12-09
- 2.0.0 — 2020-10-22
- 1.1.1 — 2018-10-31
- 1.1.0 — 2018-10-31
- 1.0.0 — 2018-09-04

## README

# npm-merge-driver-install

[![Build Status](https://travis-ci.org/BrandonOCasey/npm-merge-driver-install.svg?branch=master)](https://travis-ci.org/BrandonOCasey/npm-merge-driver-install)
[![Greenkeeper badge](https://badges.greenkeeper.io/BrandonOCasey/npm-merge-driver-install.svg)](https://greenkeeper.io/)

A package to automatically merge package-lock.json conflicts. Heavily based on [npm-merge-driver](https://www.npmjs.com/package/npm-merge-driver) with automated setup at package install time and a single small dependency for ci checking.

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Installation](#installation)
- [I don't want it to install in ci](#i-dont-want-it-to-install-in-ci)
- [Provided binaries](#provided-binaries)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Installation
To install run

```
npm i --save-dev npm-merge-driver-install
```

then add a prepare script in package.json like the following:
```
{"prepare": "npm-merge-driver-install"}
```

## I don't want it to install in ci

create a prepare.js file and change your prepare script to the following:

```js
// NOTE: you can use is-ci here or other custom code
const isCI = require('is-ci');
const npmMergeDriverInstall = require('npm-merge-driver-install');

if (!isCi) {
  npmMergeDriverInstall.install();
}
```

then change the `prepare` script in package.json to
```
{"prepare": "node prepare.js"}
```

## Provided binaries
* `npm-merge-driver-install`: install npm merge driver
* `npm-merge-driver-uninstall`: uninstall npm merge driver
* `npm-merge-driver-merge`: the internal merge binary used to merge package.json and package-lock.json
* `npm-merge-driver-is-installed`: check if npm-merge-driver-install is installed

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