# one-package-manager

> Enforce consistent use of Yarn or NPM within a team

Latest version **1.4.1** (published 2020-01-14) · AGPL-3.0-only license · 0 weekly downloads

## Install

```sh
npm install one-package-manager
pnpm add one-package-manager
yarn add one-package-manager
bun add one-package-manager
```

Provides the command `one-package-manager`.

## 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.4.1 |
| Published | 2020-01-14 |
| First published | 2020-01-13 |
| Weekly downloads | 0 |
| License | AGPL-3.0-only |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 51.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Silver Xu |
| Maintainers | silver-xu |
| Keywords | Package, Manager, Package Manager, Yarn, NPM, Teamworks |

## Links

- npm: https://www.npmjs.com/package/one-package-manager
- Repository: https://github.com/silver-xu/one-package-manager
- Homepage: https://github.com/silver-xu/one-package-manager#readme
- Issues: https://github.com/silver-xu/one-package-manager/issues
- npm.io page: https://npm.io/package/one-package-manager

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^3.0.0
- [slash](https://npm.io/package/slash.md) ^3.0.0
- [figlet](https://npm.io/package/figlet.md) ^1.2.4
- [commander](https://npm.io/package/commander.md) ^4.1.0

## Recent versions

- 1.4.1 (latest) — 2020-01-14
- 1.4.0 — 2020-01-14
- 1.3.1 — 2020-01-13
- 1.3.0 — 2020-01-13
- 1.2.0 — 2020-01-13
- 1.1.0 — 2020-01-13
- 1.0.0 — 2020-01-13

## README

# One Package Manager [![Build Status](https://travis-ci.org/silver-xu/one-package-manager.svg?branch=master)](https://travis-ci.org/silver-xu/one-package-manager) [![codecov](https://codecov.io/gh/silver-xu/one-package-manager/branch/master/graph/badge.svg)](https://codecov.io/gh/silver-xu/one-package-manager) [![greenkeeper](https://badges.greenkeeper.io/silver-xu/one-package-manager.svg?style=flat)](https://badges.greenkeeper.io/silver-xu/one-package-manager.svg?style=flat)

> Enforcing the consistent usage of Yarn or NPM within a team

## Summary

> This repo is built to enforce a software development team to use either Yarn or NPM within a repo.

## Installation

Put the following code in package.json of the intended repo:

```json
{
  "scripts": {
    "preinstall": "npx one-package-manager"
  }
}
```

## Options

To enforce the use of Yarn (default)

```json
{
  "scripts": {
    "preinstall": "npx one-package-manager --yarn"
  }
}
```

To enforce the use of NPM (default)

```json
{
  "scripts": {
    "preinstall": "npx one-package-manager --npm"
  }
}
```

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