4.6.102 • Published 10 months ago

@diotoborg/mollitia-ratione v4.6.102

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

10 months ago

4.6.102

10 months ago

4.5.101

10 months ago

4.5.100

10 months ago

4.5.99

10 months ago

4.5.98

10 months ago

4.5.97

10 months ago

4.5.96

10 months ago

4.5.95

10 months ago

4.5.94

10 months ago

4.5.93

10 months ago

4.5.92

10 months ago

4.5.91

10 months ago

4.5.90

10 months ago

4.5.89

10 months ago

4.5.88

10 months ago

4.5.87

10 months ago

4.5.86

10 months ago

4.5.85

10 months ago

4.5.84

10 months ago

4.5.83

10 months ago

4.5.82

10 months ago

4.5.81

11 months ago

4.4.81

11 months ago

4.4.80

11 months ago

4.4.79

11 months ago

4.4.78

11 months ago

4.4.77

11 months ago

4.4.76

11 months ago

4.4.75

11 months ago

4.4.74

11 months ago

4.4.73

11 months ago

4.4.72

11 months ago

4.4.71

11 months ago

4.3.71

11 months ago

4.3.70

11 months ago

4.3.69

11 months ago

4.3.68

11 months ago

4.3.67

11 months ago

4.3.66

11 months ago

4.3.65

11 months ago

4.3.64

11 months ago

4.3.63

11 months ago

3.3.63

11 months ago

3.3.62

11 months ago

3.3.61

11 months ago

3.3.60

11 months ago

3.3.59

11 months ago

3.3.58

11 months ago

3.3.57

11 months ago

3.3.56

11 months ago

3.3.55

11 months ago

3.3.54

12 months ago

3.3.53

12 months ago

3.3.52

12 months ago

3.2.52

12 months ago

3.2.51

12 months ago

3.2.50

12 months ago

3.2.49

12 months ago

3.2.48

12 months ago

3.2.47

12 months ago

3.2.46

12 months ago

2.2.46

12 months ago

2.2.45

12 months ago

2.2.44

12 months ago

2.2.43

12 months ago

2.2.42

12 months ago

2.2.41

12 months ago

2.1.41

12 months ago

2.1.40

12 months ago

2.1.39

12 months ago

2.1.38

12 months 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