Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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.
dealy:
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.$ 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 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.