Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jmaczan/funkcja

🖇️ Log function body and name to browser's console
https://github.com/jmaczan/funkcja

browser debug debugging debugging-tool developer-tools devtools javascript js logging typescript

Last synced: about 1 month ago
JSON representation

🖇️ Log function body and name to browser's console

Awesome Lists containing this project

README

        

funkcja logo

# `funkcja`

Log function body and name to browser's console.

## Usage
```JS
funkcja(mySuperFunction)
```

## Use cases
You can find it especially useful for debugging purposes, for example when:
- you need to check which function was passed as a callback or `prop` to a component
- you want to verify exact implementation of dynamically generated function

`funkcja` works for both an arrow function `() => {}` and a classic `function() {}`

## Installation
```
npm i funkcja
```

or

```
yarn install funkcja
```

## Import
```JS
import { funkcja } from 'funkcja';
```

or

```JS
const { funkcja } = require("funkcja");
```

## License
MIT License

## Author
Made in [Poland](https://en.wikipedia.org/wiki/Poland) in 2022 by [Jedrzej Pawel Maczan](https://maczan.pl/)