Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Aleppo is lightweight package written in javascript. It's toolbox contains general collection functions for node.
clone the repo:
git clone git@github.com:jimmy02020/aleppo.git
cd aleppo
npm
$ npm install aleppo
isUn(input) //tests for undefined.
isNull(input) //tests for null.
isValid(input) //tests for not being undefined or null.
isObj(input) //tests for object.
isBool(input) //tests for Boolean.
isNum(input) //tests for number.
isStr(input) //tests for string.
isFn(input) //tests for function.
isSymb(input) //tests for symbol.
isArr(input) //tests for array.
isZeroLength(input) //tests for zero length.
isStrEmpty(input) //tests if string is empty.
isArrEmpty(input) //tests if array is empty..
const numbers = generators.numbers;
numbers.getRandom(min, max, type) //returns random number in given range.
// type: is string. By default will apply for integer random number. for arbitrary value just pass 'any'.
object:
getters.obj(input) // returns key and prop.
// param = { foo: 'bar' };
// will return key = foo and prop = bar throws error if empty.
delay:
getters.delay(option) // returns delay time in microsecondsm according to given option.
// getters.delay("10m") ==> 600000
y/year/years
: returns delay in years.d/day/days
: returns delay in days.h/hour/hours
: returns delay in hours.w/week/weeks
: returns delay in weeks.mo/mos/months
: returns delay in months.m/minute/minutes
: returns delay in minutes.s/second/seconds
: returns delay in seconds.ms/millisecond/milliseconds
: returns delay in milliseconds.wait(option).then(() => console.log('Hello!')) // returns promise.
// wait('20s').then(() => console.log('Hello!')); // 'Hello! will be printed after 20 seconds'
$ npm test
This project is licensed under the MIT License
FAQs
General node functions, useful for any project.
The npm package aleppo receives a total of 3 weekly downloads. As such, aleppo popularity was classified as not popular.
We found that aleppo 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.