Jędrzej Paweł Maczan

Funkcja: log function body and name to browser's console

Hi, I published Funkcja today.

Pass the function to Funkcja and it will print its body and name.


You can find it useful for JavaScript debugging purposes, for example when you need to check which function was passed as a callback/prop to a component or when you want to verify exact implementation of dynamically generated function.

Installation and usage should be easy - run:

npm i funkcja

and import the module:

import { funkcja } from "funkcja";

I wish successfull debugging :)

The image of source code in this post was generated with https://ray.so/.

Links: GitHub, npm