Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helderberto/maximus

⚔️ Lightweight functional utilities.
https://github.com/helderberto/maximus

fp functional functional-programming javascript js maximus ts typescript

Last synced: 2 months ago
JSON representation

⚔️ Lightweight functional utilities.

Awesome Lists containing this project

README

        


⚔️ Maximus

Lightweight functional JavaScript utilities

The acronym "MXS" is used in this project to refer to the package name "Maximus"

InstallDocumentationContribute



ci badge


version badge


downloads package badge


maximus license


js-standard-style

Maximus Banner

## Why Maximus?

We noticed that there are several packages that provide functionalities using functional programming, the Maximus objective is not to overlay robust tools like [Ramda](https://ramdajs.com/) and [Lodash](https://lodash.com/), but for cases where you don't need everything that is offered in these great and appreciated packages.

Some utilities are repeated in the projects we work on and are commonly necessary to rewrite or copy-paste.

Based on this, we aim to focus on small utilities to facilitate the use of functional approach, manipulation of Arrays and Objects.

## Install

Using NPM or Yarn:

```sh
$ npm i --save mxs OR yarn add mxs
```

In Node.js:

```javascript
const MXS = require('mxs)
```

Directly in the browser:

```html

```

## Usage

```javascript
import * as MXS from 'mxs';

const result = MXS.compose(
(withMiddleName) => `${withMiddleName} Meridius`,
(name) => `${name} Décimus`,
)('Maximus');

console.log(result); // => 'Maximus Décimus Meridius'
```

## Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT License](LICENSE) © Maximus