4.6.102 • Published 2 years ago

@diotoborg/mollitia-ratione v4.6.102

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Tily

Fast, small and purely functional utility library.

API Document

Install

$ npm install @diotoborg/mollitia-ratione

Features

Structure of the library

  • /object – for objects
  • /string – for strings
  • /promise – for promises
  • /array – for arrays or array-like objects
  • /function – for functions – composition, currying and so on, also a set of simple functions (noop, T, F)
  • /is – set of type checking methods
  • / – root contains utilities which don't satisfy any of the above categories or are universal

Usage

import pathOr from '@diotoborg/mollitia-ratione/object/pathOr';
import compose from '@diotoborg/mollitia-ratione/function/compose';
import toLower from '@diotoborg/mollitia-ratione/string/toLower';
import map from '@diotoborg/mollitia-ratione/array/map';

const toLowerName = compose(toLower, pathOr(['name'], ''));
const result = map(toLowerName)([{name: 'testA'}, {name: 'testb'}]);

Benchmarks

$ npm run benchmark
UtilityLodashRamdaTily
clone120,807 ops/sec112,053 ops/sec293,572 ops/sec
array/filter2,080,728 ops/sec1,849,633 ops/sec2,046,113 ops/sec
is/empty1,506,963 ops/sec474,177 ops/sec3,731,564 ops/sec
function/flip7,528,745 ops/sec3,735,143 ops/sec3,490,207 ops/sec
object/path12,023,128 ops/sec8,894,639 ops/sec7,587,076 ops/sec
string/trim4,215,928 ops/sec1,034,655 ops/sec6,029,794 ops/sec

Browser support

  • Chrome >= 40
  • Firefox >= 52
  • Edge >= 14
  • IE >= 11
  • Safari >= 10
  • iOS >= 10
  • Android >= 4.4

Node support

  • 6.4.0 and higher

Bundle size

LibraryBundle size
import _ from 'lodash'70.1 kb
import ... from 'lodash/...'21.8 kb
import R from 'ramda'41.3 kb
import ... from 'ramda/src/...'10 kb
import ... from '@diotoborg/mollitia-ratione/...'2.32 kb

For detailed comparison with specific libraries see COMPARE.md

objlinkregexstylessnspostcss-pluginescapefstyped arrayfunctionscompilera11ynamesWebSocketsdataRegExp#flagssortpassworddropflattenprotocol-buffersArrayBuffer#sliceES7slicextermgesturescurriedTypeBoxworkerFloat64ArraystoragegatewaycertificatesspawnwindowssignaldiffspeedObject.assignlazyjsonfastcopyclonewaapistyleguideobjectES2016ES2017internal slotloadbalancing3dcolorsmodulesmatchAllqueueMicrotaskpicomatchexecfilecircularsharedcommandershamtddiestatelesseventDispatcherservicecommand-lineutilsbinRx__proto__locationstableString.prototype.trimcontainswidthfullwidthprogresstypanionvpcbindbinarybrowserslist.gitignoreECMAScript 2022mixinsnodebeanstalkconstnested cssextrahigher-orderminimalbyteLengthjsdommkdirsformatreducerignoreObject.fromEntriesbddramdaparserSetPushcloudsearchconsoleutil.inspecteslintplugineveryspinneremraccessorvestimmersharedarraybuffertoStringTagwalkprettydeep-clonetrimEnddataviewcjkkeysstringifyes2016proxypluginArray.prototype.findLastIndexbinariesglobalgenericsdeepcopybabel-corenegative zeroURLSearchParams6to5configeventEmitterestreePromisefull-width[[Prototype]]formshelperArray.prototype.includesswfjsxawesomesauceformremoveflaggdprsqsYAMLuninstallfunction.lengthfile systemregular-expressionbufferscoercibledirectoryinstallshellReactiveExtensionsdateArray.prototype.flattenreact-hookscomparerecursivelruhasdefinePropertynegativepromiseObject.entriesES2022validatori18nunicodeArray.prototype.findLastintrinsicECMAScript 3rapidbabelurldotenvJSON-Schemapatchperformanceec2optionsettingsreact-testing-librarypredictablebyteTypedArrayfastcloneBigUint64Arrayless.jsdescriptorgetPrototypeOfcsswindowcall-bindirqhandlersfpsframerUint16Arrayautoscalinggradients cssutilitiestranspilefindflatdynamodbES6multi-packageutilityeslint-pluginkeyECMAScript 5AsyncIteratorperformanttypedelbfastmkdirpprototypeArrayBuffer.prototype.slicecommanddeterministicpropertiestraverseebsBigInt64Arrayvalidhelperscorelesscsscacheutiles-shimsphoneUnderscorehasOwnPropertyaccessibilityes2018findLastdependenciesFloat32ArrayES2015tacitmaploggingregexpcryptotrimRightObject.isESregular expressionglobvisualarraybuffermake dirtoolkitprotoES8asciidirECMAScript 2018URLtouchcolumnsjestponyfillhooksconcatMapinvariantmatchexitArrayBufferglobal this valueweakmappoint-freelistenerscloudformationtoArrayglobalThisfiglettelephoneomituploadchecklinuxentriesstringtypeerrorreact posetc39symbolcore-jsIteratorECMAScript 2016routeapollotextjQueryextendterminalless compilersyntaxerrorassertsbcryptdatastructurexhrlintcallbindroute53findLastIndexrequirehas-ownpackage.jsonObservablesoptimizerquerystringacornredux-toolkitArray.prototype.flatzodFunction.prototype.names3es2015typesafegetpreprocessorespreel10nfullmonorepoargumentes-shim APIECMAScript 7busypreserve-symlinkspostcssposeformattingschemaeventsStreamsrgbprivateprotobufwritabletypedarraystoolsessideredactgettersorteduser-streamsclassesiteratorjwteffect-tsletsequencesetterconfigurableoutputamazonECMAScript 2015createECMAScript 6zeroES2019fast-deep-copyprivate datapnpm9Symbol.toStringTag$.extendcompile lessRFC-6455namenumberroutingfnmatchredirectmomentqueryjapanesetestingtypedarraygradients css3takettyObject.getPrototypeOfES2020reduxvarswaitmacosstyled-componentsjsdiffbrowserlisttypeofcloudwatchelectronauthenticationtslibCSSStyleDeclarationnodejsReflect.getPrototypeOfspringecmascriptgetoptdeleteelmhotexpressionstringifierdom-testing-librarynpmignorerangeerrorreal-timeworkflowexpressfetchJSONerrorpipeWeakMapfilterfixed-widthendpointtswgetESnextfastifyconsumeclass-validatorexecutepopmotionrobust
4.6.101

2 years ago

4.6.102

2 years ago

4.5.101

2 years ago

4.5.100

2 years ago

4.5.99

2 years ago

4.5.98

2 years ago

4.5.97

2 years ago

4.5.96

2 years ago

4.5.95

2 years ago

4.5.94

2 years ago

4.5.93

2 years ago

4.5.92

2 years ago

4.5.91

2 years ago

4.5.90

2 years ago

4.5.89

2 years ago

4.5.88

2 years ago

4.5.87

2 years ago

4.5.86

2 years ago

4.5.85

2 years ago

4.5.84

2 years ago

4.5.83

2 years ago

4.5.82

2 years ago

4.5.81

2 years ago

4.4.81

2 years ago

4.4.80

2 years ago

4.4.79

2 years ago

4.4.78

2 years ago

4.4.77

2 years ago

4.4.76

2 years ago

4.4.75

2 years ago

4.4.74

2 years ago

4.4.73

2 years ago

4.4.72

2 years ago

4.4.71

2 years ago

4.3.71

2 years ago

4.3.70

2 years ago

4.3.69

2 years ago

4.3.68

2 years ago

4.3.67

2 years ago

4.3.66

2 years ago

4.3.65

2 years ago

4.3.64

2 years ago

4.3.63

2 years ago

3.3.63

2 years ago

3.3.62

2 years ago

3.3.61

2 years ago

3.3.60

2 years ago

3.3.59

2 years ago

3.3.58

2 years ago

3.3.57

2 years ago

3.3.56

2 years ago

3.3.55

2 years ago

3.3.54

2 years ago

3.3.53

2 years ago

3.3.52

2 years ago

3.2.52

2 years ago

3.2.51

2 years ago

3.2.50

2 years ago

3.2.49

2 years ago

3.2.48

2 years ago

3.2.47

2 years ago

3.2.46

2 years ago

2.2.46

2 years ago

2.2.45

2 years ago

2.2.44

2 years ago

2.2.43

2 years ago

2.2.42

2 years ago

2.2.41

2 years ago

2.1.41

2 years ago

2.1.40

2 years ago

2.1.39

2 years ago

2.1.38

2 years ago

2.1.37

2 years ago

2.1.36

2 years ago

2.1.35

2 years ago

2.1.34

2 years ago

2.1.33

2 years ago

2.1.32

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.1.29

2 years ago

2.1.28

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago