inspect-f
Cast a function to string and adjust its indentation. Intended for rendering
function bodies in pre
-tags or consoles and what have you.
npm install --save inspect-f
Usage
Let's say we have this deeply indented function which uses a 6-space indentation scheme:
{ return a + b ; }
Then the following:
const inspectf = ;console;
Would output:
{ return a + b ;}