shysolocup / fndt

JavaScript package allowing you to see function data like body and arguments from outside of the function

Home Page:https://npmjs.com/package/fndt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fndt

JavaScript package allowing you to see function data like body and arguments from outside of the function
it uses string scoping to isolate and separate arguments then bunches them all into one simple class for your use

  • easy to use
  • open source
  • advanced scoping
  • argument fetching

npm i fndt
npm i paishee/fndt

JSOutput
const fndt = require('fndt');


function test(a, b="placeholder") {       
    console.log(a, b);
}


fndt.fetch(test, (data) => {
    console.log(data);
});
FunctionData {
    pending: false,
    name: "test",
    dataName: "test",
    body: "console.log(a, b);",
    arguments: { a: null, b: "placeholder" },
    isAsync: false,
    isArrow: false,
    data: Function,
    string: "function test(a, b="placeholder") {
        console.log(a, b);
    }"
}

About

JavaScript package allowing you to see function data like body and arguments from outside of the function

https://npmjs.com/package/fndt

License:MIT License


Languages

Language:JavaScript 100.0%