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

logrange

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

logrange

Logarithmic range between two numbers

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

npm

logrange

Build Status Dependency Status

Logarithmic range between two numbers.

Example

Ascending logarithmic range:

logrange(4, 1000, 2)
//=> [4, 8, 16, 32, 64, 128, 256, 512]

Descending logarithmic range:

logrange(4, 0.1, 0.5)
//=> [4, 2, 1, 0.5, 0.25, 0.125]

API

logrange([opts], first, last, ratio)

Returns array of multiples of first up to last:

[first, first*ratio, first*ratio*ratio, ...]
opts.inclusive

Type: Boolean
Default: false

If set, last is included if it is a part of the sequence.

Install

npm install logrange

License

MIT

Keywords

logarithmic

FAQs

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