# smallest

> Get the smallest number in a list

Latest version **1.0.1** (published 2015-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install smallest
pnpm add smallest
yarn add smallest
bun add smallest
```

## 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 | 2015-09-20 |
| First published | 2015-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | smallest, least, number |

## Links

- npm: https://www.npmjs.com/package/smallest
- Repository: https://github.com/bendrucker/smallest
- Homepage: https://github.com/bendrucker/smallest#readme
- Issues: https://github.com/bendrucker/smallest/issues
- npm.io page: https://npm.io/package/smallest

## Dependencies (1)

- [to-array](https://npm.io/package/to-array.md) ~0.1.4

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-09-20
- 1.0.0 — 2015-09-20

## README

# smallest [![Build Status](https://travis-ci.org/bendrucker/smallest.svg?branch=master)](https://travis-ci.org/bendrucker/smallest)

> Find the smallest number in a list


## Install

```
$ npm install --save smallest
```


## Usage

```js
var smallest = require('smallest')

smallest(1, 2, 4, 3)
//=> 1
```

## API

#### `smallest(values)` -> `number`

##### values

*Required*  
Type: `array[number]`

An array of numbers or a variadic set of numbers.

## Related

* [greatest](https://github.com/bendrucker/greatest)

## License

MIT © [Ben Drucker](http://bendrucker.me)

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