https://github.com/coderaiser/wraptile
Translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments
https://github.com/coderaiser/wraptile
fp functional javascript nodejs programming wrap
Last synced: 6 months ago
JSON representation
Translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments
- Host: GitHub
- URL: https://github.com/coderaiser/wraptile
- Owner: coderaiser
- License: mit
- Created: 2017-04-06T15:37:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-07T10:38:08.000Z (about 4 years ago)
- Last Synced: 2025-06-02T19:43:59.687Z (7 months ago)
- Topics: fp, functional, javascript, nodejs, programming, wrap
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
# Wraptile [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
Translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments.
## Install
```
npm i wraptile --save
```
## How to use?
```js
const wraptile = require('wraptile');
const log = wraptile((data) => console.log(data));
window.addEventListener('click', logwrap('click'));
// every time someone click log
'click'
```
## Related
- [zames](https://github.com/coderaiser/zames "zames") - converts callback-based functions to Promises and apply currying to arguments.
- [currify](https://github.com/coderaiser/currify "currify") - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments.
- [fullstore](https://github.com/coderaiser/fullstore "fullstore") - functional variables.
## License
MIT
[NPMIMGURL]: https://img.shields.io/npm/v/wraptile.svg?style=flat
[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/wraptile/master.svg?style=flat
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[NPMURL]: https://npmjs.org/package/wraptile "npm"
[BuildStatusURL]: https://travis-ci.org/coderaiser/wraptile "Build Status"
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
[CoverageURL]: https://coveralls.io/github/coderaiser/wraptile?branch=master
[CoverageIMGURL]: https://coveralls.io/repos/github/coderaiser/wraptile/badge.svg?branch=master