Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Lightweight and without any external dependencies arare enables you to write tacit, point-free, declarative & clean code while avoiding side-effects and mutations. Internally the library itself, comprised of over 190 functions, follows the functional programming paradigm and is materialized using fundamental functional qualities such as currying, recursion, tail calls, high-order functions, referential transparency, side-effects elimination and function composition. Additionally, arare utilizes automatic variadic currying for its functions, thus allowing the user to write more flexible, practical & minimal code, compared to regular strict currying. Regular currying can still be achieved by applying one instead of multiple arguments at a time to a function. Finally, the library comes with a build-in interactive REPL environment, useful for directly inspecting and experimenting with all available modules without leaving the console.
Please note that project is in its early days and that it is currently under active development.
Come over to Gitter or Twitter to share your thoughts on the project.
npm install arare
Import arare and start using directly any of the available modules.
const A = require('arare')
A.map(A.add(10), A.range(1, 4, 1)) //=> [11, 12, 13]
Alternatively, select and import only the modules that you need.
const {add, map, range} = require('arare')
map(add(10), range(1, 4, 1)) //=> [11, 12, 13]
Initially, install arare globally in order to be able to access the REPL environment.
npm install -g arare
To launch the REPL simply type arare
from anywhere in your console.
arare # launch REPL
The following lists contain all available functions grouped into categories according to the type of their respective returning value.
Also, an alphabetically ordered list of all available functions can be found here.
Any
Array
append
appendTo
array
arrayify
arrayMinMax
breakWhen
concat
copy
drop
dropRight
dropRightWhile
dropWhile
empty
entries
fill
filter
flatten
init
keys
map
mapcat
merge
mergeBy
ones
pair
partition
partitionAt
prepend
prependTo
props
range
reduce
reduceRight
reject
remove
replace
replaceAll
setHead
setHeadWith
setLast
setLastWith
setNth
setNthWith
shift
shiftLeft
slice
split
swap
tail
take
takeRight
takeRightWhile
takeWhile
values
xshift
xshiftLeft
zeros
zip
zipReverse
zipSelf
zipTail
zipWith
Boolean
Function
Number
String
Object
Undefined
cd arare
npm install
or yarn install
npm test
or yarn test
FAQs
🍘 Lightweight auto-curried functional programming library
The npm package arare receives a total of 5 weekly downloads. As such, arare popularity was classified as not popular.
We found that arare demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.