sizeof icon indicating copy to clipboard operation
sizeof copied to clipboard

Function Support?

Open mahsashadi opened this issue 3 years ago • 1 comments

Does this module support functions?

mahsashadi avatar Feb 20 '22 11:02 mahsashadi

@mahsashadi no, it doesn't. PR is always welcomed!

miktam avatar Feb 20 '22 18:02 miktam

ChatGPT has a following view on calculating the function size

chatGpt about function
const util = require('util');
const myFunction = function() {console.log("Hello World")};

const funcString = util.inspect(myFunction);
const funcSize = Buffer.byteLength(funcString, 'utf8');
console.log(funcSize);

miktam avatar Jan 28 '23 20:01 miktam