🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

median-range

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

median-range

Create a median range with lower and upper bounds. Useful for creating paginations.

latest
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

median-range

install

npm install median-range

Create a median range with lower and upper bounds. Useful for creating paginations.

medianrange(10, 3) === [9, 10, 11]

with lower bounds

medianrange(10, 5, 9) === [9,10,11,12,13]

with upper bounds

medianrange(10, 5, 0, 11) === [7,8,9,10,11]

FAQs

Package last updated on 28 Oct 2014

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