Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
range-2018.js
Advanced tools
Readme
return an array of Numbers, similar to such of a Python's
npm i range-2018.js
const range = require( 'range-2018.js' )
import { range } from 'range-2018.js'
install by copying the file, or just copy-paste the source code, i guess
import { range } from 'vendor/range/mod.js'
or
<script type='module' src='vendor/range/mod.js'></script>
N integers starting at
0
range( 10 )
>> [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
all integers from X to Y (Y not included)
range( 1, 10 )
>> [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
range( -5, 5 )
>> [ -5, -4, -3, -2, -1, 0, 1, 2, 3, 4 ]
all numbers from X to Y (Y not included), with Z as a distance
range( 1, 10, 2 )
>> [ 1, 3, 5, 7, 9 ]
range( -2, 0, 0.3 )
>> [ -2, -1.7, -1.4, -1.1, -0.8, -0.5, -0.2 ]
const ceil_abs = N => Math.ceil( Math.abs( N ) )
const range = ( cnt_or_start = 0, stop = null, step = 1 ) =>
( null === stop )
&& [...Array( cnt_or_start ).keys( )]
|| [...Array( ceil_abs( ( stop - cnt_or_start ) / step ) )]
.map( ( _, i ) => cnt_or_start + i * step )
FAQs
return an array of Numbers, similar to such of a Python's
The npm package range-2018.js receives a total of 0 weekly downloads. As such, range-2018.js popularity was classified as not popular.
We found that range-2018.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.