# isint

> Test if the value is integer of specified size

Latest version **1.0.1** (published 2015-06-07) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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-06-07 |
| First published | 2015-04-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sergii Iefremov |
| Maintainers | iefserge |
| Keywords | is, integer, type |

## Links

- npm: https://www.npmjs.com/package/isint
- Repository: https://github.com/iefserge/isint
- Issues: https://github.com/iefserge/isint/issues
- npm.io page: https://npm.io/package/isint

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-06-07
- 1.0.0 — 2015-04-24
- 0.1.0 — 2015-04-24

## README

## SYNOPSIS

Test if the value is integer of specified size

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

## USAGE

```js
var isint = require('isint');

isint.int8(-129)          // false
isint.int8(-128)          // true
isint.int8(127)           // true
isint.int8(128)           // false

isint.int16(-32769)       // false
isint.int16(-32768)       // true
isint.int16(32767)        // true
isint.int16(32768)        // false

isint.int32(-2147483649)  // false
isint.int32(-2147483648)  // true
isint.int32(2147483647)   // true
isint.int32(2147483648)   // false

isint.uint8(0)            // true
isint.uint8(-1)           // false
isint.uint8(255)          // true
isint.uint8(256)          // false

isint.uint16(0)                     // true
isint.uint16(-1)                    // false
isint.uint16(Math.pow(2, 16) - 1)   // true
isint.uint16(Math.pow(2, 16))       // false

isint.uint32(0)                     // true
isint.uint32(-1)                    // false
isint.uint32(Math.pow(2, 32) - 1)   // true
isint.uint32(Math.pow(2, 32))       // false
```

##LICENSE

Apache License, Version 2.0

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