🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

between-range

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

between-range

check if a given number is between two numbers

1.0.0
latest
Source
npm
Version published
Weekly downloads
1.4K
-10.93%
Maintainers
1
Weekly downloads
 
Created
Source

between-range

check if a given number is between two values

Build StatusCode Coverage 100%ISC License

API

var between = require('between-range')
  • between(value, number1, number2)

Usage

check if a number is inside of the passed range
var inside = between(200, 200, 299) // should return true
var notInside = between(101, 200, 299) // should return false

Development

this projet has been set up with a precommit that forces you to follow a code style, no jshint issues and 100% of code coverage before commit

to run test

npm test

to run jshint

npm run jshint

to run code style

npm run code-style

to run check code coverage

npm run check-coverage

to open the code coverage report

npm run open-coverage

Keywords

between

FAQs

Package last updated on 19 Nov 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