4.10.95 • Published 1 year ago

@patrtorg/expedita-porro-voluptate v4.10.95

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

image

HI! Meet @patrtorg/expedita-porro-voluptate - JavaScript/TypeScript functional programming utility library named after my parakeet.

This lib is intended to be a functional toolkit more flexible than ramda is. Its' basic API is similimar to ramda's one. Other goals are:

  • Async pipes. They are very handy, but are not 100% pure in terms of Haskell c:
  • Most flexible types possible (Let'em be any better than crashing because of their failures. I'm currently working on full JSDocs and better basic types).
  • Tree-shakeble and smallest possible. What could be native, is native.
  • Has "quick" alternatives of most computation-heavy functions with q prefix which are not completely safe by fp means: most of them do mutations and it may be needed to clone or cloneShallow data in a first pipe of compose(...).
  • Has basic toolbelt-types like AnyObject and AnyFunc<ReturnType?, ...args?> etc.
  • Has some basic additinal must-have stuff that ramda does not.

Full docs are coming, please reference ramda's ones for most operations and examples: https://ramdajs.com/docs/

Basic API differences:

  • clone() clones deeply as possible any type possible.
  • cloneShallow() clones only by 1st level of folding also any type possible.
  • mergeDeep - replaces arrays.
    • mergeDeepX - replaces its' elements with same indexes.
    • mergeDeepAdd - adds new elements to arrays.
  • type - returns type UpperCased of anything passed to it, including classes and typed arrays.
  • mapKeys - changes existing keys and data by map or function like usual mapper.
  • explore(label)(data) - compose(explore('the number'))(42) results in 'the number', 42 in console passing by the data.
  • genBy(generator(index), length) - generates arrays.
  • sizeof(array or object) - counts indexes of it.
  • Aliases: mirror, reflect, echo = identity.
  • Quicks: qappend, qassoc, qreduce, qmergeDeep, qmergeDeepX, qmergeDeepAdd, qmapKeys, qfilter

Async APIs:

  • composeAsync - waits for a Promise if emitted by a pipe inside it.
  • waitAll = Promise.all
  • forEachAsync - runs a handler with all elements passed in parallel.
  • forEachSerial - waits for a previous handler to resolve if Promise emitted.
commanderglacierpackage.jsonmodulelazysideansicharacter.gitignoreargvfastrequestjsonschemalibphonenumber[[Prototype]]valuesreal-timeTypeBoxutilsArray.prototype.flatpolyfill@@toStringTagtouch6to5TypeScriptspinnerstostringtagreact-hook-formdiffescapeagentcompilerECMAScript 2018argsletmulti-packageBigUint64ArraysigintwritableUint8ClampedArraysimpledbspinnerfixed-widthreplayidleexecdefinetypesafeeslintconfigsubprocessflattenisConcatSpreadableglobals$.extendfilterfetchbabel-coreglobalperformantcommand-linedeep-cloneutilitypushbcrypti18nreadablestreamcacheStreamsless mixinsrandomrfc4122user-streamsscheme-validationeventsbrowsersymbolshttpajaxprettytranspilePromisebincoreiterationexpressionefficientemitclassnamesflattestersafechannelcloudtrailconfigtrimStartStyleSheetnamesReflect.getPrototypeOfjavascriptfnmatchflagcss-in-jsgroupByclientutilurlparseparserbabeltoSortedmakefpssharedchromiumbinaryroute53ECMAScript 2015ECMAScript 2021point-freesorttoStringTagloadbalancingcreateprocessfantasy-landgetintrinsicstringifierproxyregexpnpmignoreobjfast-copytypescriptpreprocessorprotoweaksetHyBihas-owncallWeakMapObject.fromEntriessetImmediatecss lessdefinePropertyeslintliveES2023pluginerrorjwtdayjs.envlinuxiamruntimepostcssECMAScriptObservableentriescss nestingresolvetrimoptionirqURLSearchParamscodesinvariantauthenticationinternalObject.getPrototypeOfarraybufferdeletesameValueZerordsgitignorequeryxtermfunction.lengthhigher-orderpasswordspring-0arktypecolorsless cssES2019persistenttermpropertiesUint16Arrayreadableprivateworker0uploadcjkshimArray.prototype.filterhasOwnwhatwgloggerexpressprogressdomgdprbootstrap csswindowsbdds3stringifyreact animationArray.prototype.includescall-boundwgetwhichendpointtesttrimRightapollouninstallmatchinreact-componentArray.prototype.findLastfunctionsquoteworkflowforkRFC-6455estreepreserve-symlinkscolumnsfilebuffersFunction.prototype.nameObject.definePropertyimmertypanioncompareschemaprotobufsettingsdropcallbackcertificateshardlinkslanguageformatlinta11ysuperstructvariables in csspropertycompile lessfastclonezodkeysdataViewxhrcontainsvalidationloadingRxJSSetenumerableemrroutecollection.es6eslintpluginincludesbyteselfsyntaxerrorpipeendernamereducerjsdiffhttpsArray.prototype.flattenimmutablebundlerfull-widthmkdirsacornpyyamlhelperponyfillString.prototype.trimcloudwatchgetpurecallboundmomentsymlinkvalueECMAScript 3accessoriteratorcommandBigInt64ArraybusyhooksvarsstateclassnamedeepcloneesdotenvreducewaapibrowserlistjapaneseignoreawsmodulestypesunicodeTypedArraytranspilersnskeyshamstreamserializationtrimEndgetPrototypeOfconfigurable_.extendstoragegatewayArray.prototype.findLastIndexjoicurlcloudsearchexecfileworkspace:*tslibtddtypeMapstreamsio-tstypedESECMAScript 2019ECMAScript 7minimaleverygenericsthreeinternal slotgradients cssoperating-systemmixinsdynamodbredactclass-validatorargumentastcryptoassignbyteOffsetWeakSet256swfAsyncIteratorsuperagentpostcss-pluginES2018opensslcolorpinoenvironmentarrayES2015regularrangeerrorremoveposeclies2017timetyped arraywalksomehelperstransportReactiveXchinesefunctionpromiseanimationreact-hookssettercurriedECMAScript 5jspopmotionelectrondeep-copymacosconstexitstylingmapreduceprefixnumberviewtoolkitspawnelmwarningconcatMapoutputairbnbcryptSystem.globalreadreduxArray.prototype.flatMapschemeartjQueryecmascriptlengthbinariesInt8Arrayform-validationdragtakeserializerfullwidthwidthfrom
4.10.94

1 year ago

4.10.95

1 year ago

4.10.93

1 year ago

4.10.92

1 year ago

4.10.91

1 year ago

4.10.90

1 year ago

4.10.89

1 year ago

4.10.88

1 year ago

4.10.87

1 year ago

4.10.86

1 year ago

4.10.85

1 year ago

4.10.84

1 year ago

4.10.83

1 year ago

4.9.83

1 year ago

4.9.82

1 year ago

4.9.81

1 year ago

4.9.80

1 year ago

4.9.79

1 year ago

4.9.78

1 year ago

4.8.78

1 year ago

4.8.77

1 year ago

4.8.76

1 year ago

4.8.75

1 year ago

4.8.74

1 year ago

4.8.73

1 year ago

3.8.73

1 year ago

3.8.72

1 year ago

3.8.71

1 year ago

3.8.70

1 year ago

3.8.69

1 year ago

3.8.68

1 year ago

3.8.67

1 year ago

3.8.66

1 year ago

3.8.65

1 year ago

3.8.64

1 year ago

3.8.63

1 year ago

3.8.62

1 year ago

3.8.61

1 year ago

3.8.60

1 year ago

2.8.60

1 year ago

2.8.59

1 year ago

2.8.58

1 year ago

2.8.57

1 year ago

2.8.56

1 year ago

2.8.55

1 year ago

2.8.54

1 year ago

2.8.53

1 year ago

2.8.52

1 year ago

2.8.51

1 year ago

2.8.50

1 year ago

2.8.49

1 year ago

2.8.48

1 year ago

2.8.47

1 year ago

2.8.46

1 year ago

2.8.45

1 year ago

2.7.45

1 year ago

2.7.44

1 year ago

2.7.43

1 year ago

2.6.43

1 year ago

2.5.43

1 year ago

2.5.42

1 year ago

2.5.41

1 year ago

2.5.40

1 year ago

2.5.39

1 year ago

2.5.38

1 year ago

2.5.37

1 year ago

2.5.36

1 year ago

2.5.35

1 year ago

2.5.34

1 year ago

2.5.33

1 year ago

2.5.32

1 year ago

2.5.31

1 year ago

2.5.30

1 year ago

2.5.29

1 year ago

2.5.28

1 year ago

2.5.27

1 year ago

2.4.27

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago