# ifpositive

> check if number is positive

Latest version **1.0.1** (published 2020-08-18) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2020-08-18 |
| First published | 2020-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | leoguy77 |
| Maintainers | leoguy77 |

## Links

- npm: https://www.npmjs.com/package/ifpositive
- npm.io page: https://npm.io/package/ifpositive

## Recent versions

- 1.0.1 (latest) — 2020-08-18
- 1.0.0 — 2020-08-18

## README

# ifpositive

Check if number is positive.

## Installation

- With npm:

```sh
npm install ifpositive
```

- With yarn:

```sh
yarn add ifpositive
```

- From a CDN:

```html
<script src="https://unpkg.com/ifpositive"></script>
```

## Usage

### CommonJS

```js
const ifpositive = require("ifpositive");

console.log(ifpositive(-1)); // false
console.log(ifpositive(1)); // true
```

### ES2015 Modules + Bundler

```js
import ifpositive from "ifpositive";

console.log(ifpositive(-1)); // false
console.log(ifpositive(1)); // true
```

### Browser ES2015 Modules

```js
import ifpositive from "https://unpkg.com/ifpositive/lib/index.js";

console.log(ifpositive(-1)); // false
console.log(ifpositive(1)); // true
```

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