4.6.102 • Published 12 months ago

@diotoborg/mollitia-ratione v4.6.102

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months 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

12 months ago

4.6.102

12 months ago

4.5.101

12 months ago

4.5.100

1 year ago

4.5.99

1 year ago

4.5.98

1 year ago

4.5.97

1 year ago

4.5.96

1 year ago

4.5.95

1 year ago

4.5.94

1 year ago

4.5.93

1 year ago

4.5.92

1 year ago

4.5.91

1 year ago

4.5.90

1 year ago

4.5.89

1 year ago

4.5.88

1 year ago

4.5.87

1 year ago

4.5.86

1 year ago

4.5.85

1 year ago

4.5.84

1 year ago

4.5.83

1 year ago

4.5.82

1 year ago

4.5.81

1 year ago

4.4.81

1 year ago

4.4.80

1 year ago

4.4.79

1 year ago

4.4.78

1 year ago

4.4.77

1 year ago

4.4.76

1 year ago

4.4.75

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

4.4.72

1 year ago

4.4.71

1 year ago

4.3.71

1 year ago

4.3.70

1 year ago

4.3.69

1 year ago

4.3.68

1 year ago

4.3.67

1 year ago

4.3.66

1 year ago

4.3.65

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

3.3.63

1 year ago

3.3.62

1 year ago

3.3.61

1 year ago

3.3.60

1 year ago

3.3.59

1 year ago

3.3.58

1 year ago

3.3.57

1 year ago

3.3.56

1 year ago

3.3.55

1 year ago

3.3.54

1 year ago

3.3.53

1 year ago

3.3.52

1 year ago

3.2.52

1 year ago

3.2.51

1 year ago

3.2.50

1 year ago

3.2.49

1 year ago

3.2.48

1 year ago

3.2.47

1 year ago

3.2.46

1 year ago

2.2.46

1 year ago

2.2.45

1 year ago

2.2.44

1 year ago

2.2.43

1 year ago

2.2.42

1 year ago

2.2.41

1 year ago

2.1.41

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

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