# is-positive

> Check if something is a positive number

Latest version **3.1.0** (published 2016-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-positive
pnpm add is-positive
yarn add is-positive
bun add is-positive
```

## 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 | 3.1.0 |
| Published | 2016-01-11 |
| First published | 2015-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 70 |
| Author | Kevin Martensson |
| Maintainers | kevva |
| Keywords | number, positive, test, check |

## Links

- npm: https://www.npmjs.com/package/is-positive
- Repository: https://github.com/kevva/is-positive
- Homepage: https://github.com/kevva/is-positive#readme
- Issues: https://github.com/kevva/is-positive/issues
- npm.io page: https://npm.io/package/is-positive

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2016-01-11
- 3.0.0 — 2015-07-10
- 2.0.0 — 2015-06-17
- 1.0.0 — 2015-06-02

## README

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

> Check if something is a positive number


## Install

```
$ npm install --save is-positive
```


## Usage

```js
const isPositive = require('is-positive');

isPositive(1);
//=> true

isPositive(0);
//=> false

isPositive(-1);
//=> false

isPositive('1');
//=> false

isPositive(Number(1))
//=> true
```

_Note: This module doesn't consider `0` to be a positive number and doesn't distinguish between `-0` and `0`. If you want to detect `0`, use the [`positive-zero`](https://github.com/sindresorhus/positive-zero) module._


## Related

- [is-negative](https://github.com/kevva/is-negative) - Check if something is a negative number


## License

MIT © [Kevin Martensson](http://github.com/kevva)

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