Nutella Peanut-Butter Marshmallow
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

between-range

1.0.0 • Public • Published

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

install

npm i between-range

Downloadsweekly downloads

575

version

1.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability