# mr-potato-head

> Get an arbitrary, common mysql lock

Latest version **5.0.0** (published 2022-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install mr-potato-head
pnpm add mr-potato-head
yarn add mr-potato-head
bun add mr-potato-head
```

## 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 | 5.0.0 |
| Published | 2022-03-28 |
| First published | 2015-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Liam Oehlman |
| Maintainers | mauricebutler, liam_oehlman |
| Keywords | lock, mysql, postgres, potato |

## Links

- npm: https://www.npmjs.com/package/mr-potato-head
- Repository: https://github.com/liamoehlman/mr-potato-head
- Homepage: https://github.com/liamoehlman/mr-potato-head#readme
- Issues: https://github.com/liamoehlman/mr-potato-head/issues
- npm.io page: https://npm.io/package/mr-potato-head

## Dependencies (1)

- [righto](https://npm.io/package/righto.md) ^3.2.0

## Recent versions

- 5.0.0 (latest) — 2022-03-28
- 4.0.1 — 2020-04-08
- 4.0.0 — 2018-12-12
- 3.0.0 — 2018-05-15
- 2.0.1 — 2018-01-18
- 2.0.0 — 2018-01-17
- 1.0.0 — 2015-09-29

## README

# mr-potato-head

Get an arbitrary, common mysql lock

## Installation

```bash
$ npm install --save mr-potato-head

# And one of the following:
$ npm install --save pg
$ npm install --save mysql2
```

## Usage

```javascript
var mrPotatoHead = require('mr-potato-head');

mrPotatoHead({
    dialect: 'mysql', // or postgres
    host: 'localhost',
    username: 'database',
    password: 'databasepassword',
    database: 'databasename',
}).lock(function(error) {
    if (error) {
        // no lock for you!
    }
});
```

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