# wilson-node

> wilson score interval - a binomial proportion confidence interval (node module)

Latest version **1.0.0** (published 2015-04-15) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install wilson-node
pnpm add wilson-node
yarn add wilson-node
bun add wilson-node
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-04-15 |
| First published | 2015-04-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michał Jezierski |
| Maintainers | michal.jezierski |
| Keywords | wilson, interval, confidence, wilson score |

## Links

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

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-04-15

## README

# Wilson score interval [![Build Status](https://travis-ci.org/msn0/wilson-node.svg?branch=master)](http://travis-ci.org/msn0/wilson-node)

Simple implementation of [Wilson score interval](http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval) 
in Node.js. For browser version refer to https://github.com/msn0/wilson-score-interval.

Wilson score interval is a perfect tool for scoring comments. The only data you need is a number of upvotes 
and a total number of votes. It has really good properties even for small number of votes.

## Installation

```
npm install wilson-node
```

## Usage

```js
var wilson = require('wilson-node');

wilson(upVotes, total);

wilson(430, 474); // → Object{left: 0.8776750858242243, right: 0.9301239839930541}
wilson(392, 436); // → Object{left: 0.8672311846637769, right: 0.9239627360567735}
wilson(10, 14);   // → Object{left: 0.4535045882751561, right: 0.882788120898909}
```

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