Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenmueller/functionator
Uncallable statements made callable
https://github.com/kenmueller/functionator
Last synced: about 2 months ago
JSON representation
Uncallable statements made callable
- Host: GitHub
- URL: https://github.com/kenmueller/functionator
- Owner: kenmueller
- Created: 2019-05-04T04:13:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-30T19:08:26.000Z (over 5 years ago)
- Last Synced: 2024-10-11T22:13:33.981Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/functionator
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# functionator
**Uncallable statements made callable**
## Download
```bash
npm i functionator
```## Initialization
```javascript
const f = require('functionator')
```## Usage
```javascript
document.querySelector('button').addEventListener('click', f(alert('hello')))
```**Just wrap your statement with `f(...)`**
## Source code
```javascript
module.exports = f => () => f
```**Yep, that's all!**