Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/georapbox/js-fp-utils
Javascript utilities for functional programming
https://github.com/georapbox/js-fp-utils
compose curry flip functional-programming javascript partial partialright pipe utilities
Last synced: about 1 month ago
JSON representation
Javascript utilities for functional programming
- Host: GitHub
- URL: https://github.com/georapbox/js-fp-utils
- Owner: georapbox
- License: mit
- Created: 2019-10-25T18:56:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T15:41:59.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T12:59:52.427Z (about 1 month ago)
- Topics: compose, curry, flip, functional-programming, javascript, partial, partialright, pipe, utilities
- Language: JavaScript
- Homepage:
- Size: 697 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/georapbox/js-fp-utils.svg?branch=master)](https://travis-ci.com/georapbox/js-fp-utils)
[![Coverage Status](https://coveralls.io/repos/github/georapbox/js-fp-utils/badge.svg?branch=master)](https://coveralls.io/github/georapbox/js-fp-utils?branch=master)# js-fp-utils
Javascript functional programming utilities
## Utilities
| Name | Description |
|------|-------------|
| [curry](https://github.com/georapbox/js-fp-utils/tree/master/packages/curry) | Returns a curried equivalent of the provided function. |
| [compose](https://github.com/georapbox/js-fp-utils/tree/master/packages/compose) | Performs right-to-left function composition. |
| [flip](https://github.com/georapbox/js-fp-utils/tree/master/packages/flip) | Creates a function that invokes the original function with its parameters reversed. |
| [partial](https://github.com/georapbox/js-fp-utils/tree/master/packages/partial) | Creates a new function that invokes the provided function with `partials` **prepended** to the arguments it receives. |
| [partialRight](https://github.com/georapbox/js-fp-utils/tree/master/packages/partialRight) | Creates a new function that invokes the provided function with `partials` **appended** to the arguments it receives. |
| [pipe](https://github.com/georapbox/js-fp-utils/tree/master/packages/pipe) | Performs left-to-right function composition. |
| [trace](https://github.com/georapbox/js-fp-utils/tree/master/packages/trace) | Inspect the values between functions in a point-free style when using function composition. |## Tests
```sh
$ npm run test
```## License
[The MIT License (MIT)](https://georapbox.mit-license.org/@2019)