Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@diotoborg/mollitia-ratione
Advanced tools
> Fast, small and purely functional utility library. > > [API Document](https://betaly.github.io/@diotoborg/mollitia-ratione/)
Fast, small and purely functional utility library.
$ npm install @diotoborg/mollitia-ratione
/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 universalimport 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'}]);
$ npm run benchmark
Utility | Lodash | Ramda | Tily |
---|---|---|---|
clone | 120,807 ops/sec | 112,053 ops/sec | 293,572 ops/sec |
array/filter | 2,080,728 ops/sec | 1,849,633 ops/sec | 2,046,113 ops/sec |
is/empty | 1,506,963 ops/sec | 474,177 ops/sec | 3,731,564 ops/sec |
function/flip | 7,528,745 ops/sec | 3,735,143 ops/sec | 3,490,207 ops/sec |
object/path | 12,023,128 ops/sec | 8,894,639 ops/sec | 7,587,076 ops/sec |
string/trim | 4,215,928 ops/sec | 1,034,655 ops/sec | 6,029,794 ops/sec |
Library | Bundle 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
FAQs
> Fast, small and purely functional utility library. > > [API Document](https://betaly.github.io/@diotoborg/mollitia-ratione/)
The npm package @diotoborg/mollitia-ratione receives a total of 602 weekly downloads. As such, @diotoborg/mollitia-ratione popularity was classified as not popular.
We found that @diotoborg/mollitia-ratione demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.