New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

isint

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isint

Test if the value is integer of specified size

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

SYNOPSIS

Test if the value is integer of specified size

Build Status

USAGE

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

Keywords

is

FAQs

Package last updated on 07 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts