1.0.2 • Published 2 years ago

functinfo v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

FunctInfo

Get information from any type of function

Usage

const fi = require("functinfo")

const user = function(name) {
return `Hi! i am ${name}`
}

console.log(fi(user)) // {name: 'user', type: 'Function', arguments: ["name"], code: '\nreturn `Hi! i am ${name}`\n', isNative: false, run: [Function: user]}

const wow = async() => {
const w = await letters.get("w")
const o = await letters.get("o")
const w2 = await letters.find(a => a == "w")

return w+o+w2
}

console.log(fi(wow)) //{name: 'wow', type: 'AsyncFunction', arguments: [], code: ..., isNative: false, run: [AsyncFunction: wow]}