# stats-median

> Calculate median of data

Latest version **1.0.1** (published 2019-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install stats-median
pnpm add stats-median
yarn add stats-median
bun add stats-median
```

## 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.1 |
| Published | 2019-04-12 |
| First published | 2015-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michał Jezierski |
| Maintainers | michal.jezierski |
| Keywords | median, stats, statistics, analytics |

## Links

- npm: https://www.npmjs.com/package/stats-median
- Repository: https://github.com/msn0/stats-median
- Issues: https://github.com/msn0/stats-median/issues
- npm.io page: https://npm.io/package/stats-median

## Recent versions

- 1.0.1 (latest) — 2019-04-12
- 1.0.0 — 2015-04-24

## README

# Median [![Build Status](https://travis-ci.org/msn0/stats-median.svg?branch=master)](http://travis-ci.org/msn0/stats-median)

> Calculate median of data.

## Installation

```sh
$ npm install stats-median
```

## Usage

```js
var median = require('stats-median');

var data = [3, 6, 7, 8, 8, 10, 13, 15, 16, 20];

median.calc(data); // → 9
```

### API

#### calc(data)

##### data

Type: `array`

The data to be analysed; an array of numbers.

## License
MIT &copy; [Michał Jezierski](https://pl.linkedin.com/in/jezierskimichal)

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