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.
numbers.js
Advanced tools
Readme
A helper library to operate numbers
Numbers.js is available as npm package and can be installed as $ npm install number.js
or browserified build can be used from http://cchandurkar.github.io/Numbers.js/numbers.min.js
cd Numbers.js && npm install
npm run build
to create browserified build OR npm run serve
to launch development server that watches file changes and rebuilds.// 1. Checks whether number is prime number
numbers.isPrime(number) => [boolean]
// 2. Checks whether number is abundant number
numbers.isAbundant(number) => [boolean]
// 3. Checks whether number is perfect number
numbers.isPerfect(number) => [boolean]
// 4. Checks whether number is deficient number
numbers.isDeficient(number) => [boolean]
// 5. Checks whether number is perfect square
numbers.isPerfectSquare(number) => [boolean]
// 6. Get all divisors of a number
numbers.divisors(number) => [array]
// 1. Get a sum of all integers
numbers.series.sum([numbers]) => [number]
// 2. Finds a median of the series
numbers.series.median([numbers]) => [number]
// 3. Finds a range of the series
numbers.series.range([numbers]) => [number]
// 4. Finds a mean of the series
numbers.series.mean([numbers]) => [number]
// 5. Finds a mode of the series
numbers.series.mode([numbers]) => [number]
// 6. Sorts an array in ascending or descending order
numbers.series.sort([numbers], descending[boolean]) => [array]
// 7. Finds nth number in arithmetic series
numbers.series.nthArithmetic([numbers], n[number]) => [number]
// 8. Finds nth number in geometric series
numbers.series.nthGeometric([numbers], n[number]) => [number]
// 9. Checks whether series is in arithmetic progression
numbers.series.isArithmetic([numbers]) => [boolean]
// 10. Checks whether series is in geotetric progression
numbers.series.isGeometric([numbers]) => [boolean]
FAQs
A helper library to operate numbers
The npm package numbers.js receives a total of 3 weekly downloads. As such, numbers.js popularity was classified as not popular.
We found that numbers.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.