Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helderberto/maximus
⚔️ Lightweight functional utilities.
https://github.com/helderberto/maximus
fp functional functional-programming javascript js maximus ts typescript
Last synced: about 1 month ago
JSON representation
⚔️ Lightweight functional utilities.
- Host: GitHub
- URL: https://github.com/helderberto/maximus
- Owner: helderberto
- License: mit
- Created: 2020-08-16T17:09:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-13T18:47:14.000Z (10 months ago)
- Last Synced: 2024-05-13T22:21:32.833Z (6 months ago)
- Topics: fp, functional, functional-programming, javascript, js, maximus, ts, typescript
- Language: TypeScript
- Homepage:
- Size: 2.02 MB
- Stars: 17
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
Install • Documentation • Contribute
## 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