# cribbage-calculator

Latest version **1.0.2** (published 2019-04-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install cribbage-calculator
pnpm add cribbage-calculator
yarn add cribbage-calculator
bun add cribbage-calculator
```

## 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.0.2 |
| Published | 2019-04-12 |
| First published | 2019-04-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | juliantomlin |

## Links

- npm: https://www.npmjs.com/package/cribbage-calculator
- Repository: https://github.com/juliantomlin/cribbage-calculator
- Homepage: https://github.com/juliantomlin/cribbage-calculator#readme
- Issues: https://github.com/juliantomlin/cribbage-calculator/issues
- npm.io page: https://npm.io/package/cribbage-calculator

## Recent versions

- 1.0.2 (latest) — 2019-04-12
- 1.0.1 — 2019-04-09
- 1.0.0 — 2019-04-08

## README

### Cribbage calculator

Cribbage calculator will caculate the score of any cribbage hand.

## How to use

```

npm install cribbage-calculator

````
- function takes an array of cards as the argument
- the first 4 cards in the array will be the hand, the 5th will be the knob
- cards should be entered in for format 'value-suit',
- a = ace, j = jack, q = queen, and k = king
- h = hearts, d = dimonds, c = clubs, and s = spades

## Example:

``` js

  const calculator = require('cribbage-calculator')

  console.log(calculator(['2h', '10c', '3s', 'qd', 'ah']))

  // returns 7

```

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