{"id":20780263,"url":"https://github.com/xotic750/get-function-args-x","last_synced_at":"2026-04-22T01:32:52.721Z","repository":{"id":3329167,"uuid":"49098179","full_name":"Xotic750/get-function-args-x","owner":"Xotic750","description":"Get the args of the function.","archived":false,"fork":false,"pushed_at":"2023-01-04T23:18:20.000Z","size":3700,"stargazers_count":1,"open_issues_count":21,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T09:48:02.877Z","etag":null,"topics":["arguments","browser","ecmascript","name","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xotic750.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-05T23:05:36.000Z","updated_at":"2020-01-31T10:57:19.000Z","dependencies_parsed_at":"2023-01-11T16:16:39.199Z","dependency_job_id":null,"html_url":"https://github.com/Xotic750/get-function-args-x","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fget-function-args-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fget-function-args-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fget-function-args-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fget-function-args-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xotic750","download_url":"https://codeload.github.com/Xotic750/get-function-args-x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243123687,"owners_count":20240066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arguments","browser","ecmascript","name","nodejs"],"created_at":"2024-11-17T13:33:05.082Z","updated_at":"2025-12-26T02:06:12.956Z","avatar_url":"https://github.com/Xotic750.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca\n  href=\"https://travis-ci.org/Xotic750/get-function-args-x\"\n  title=\"Travis status\"\u003e\n\u003cimg\n  src=\"https://travis-ci.org/Xotic750/get-function-args-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/get-function-args-x\"\n  title=\"Dependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/get-function-args-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/get-function-args-x?type=dev\"\n  title=\"devDependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/get-function-args-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://badge.fury.io/js/get-function-args-x\"\n  title=\"npm version\"\u003e\n\u003cimg src=\"https://badge.fury.io/js/get-function-args-x.svg\"\n  alt=\"npm version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://www.jsdelivr.com/package/npm/get-function-args-x\"\n  title=\"jsDelivr hits\"\u003e\n\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/get-function-args-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://bettercodehub.com/results/Xotic750/get-function-args-x\"\n  title=\"bettercodehub score\"\u003e\n\u003cimg src=\"https://bettercodehub.com/edge/badge/Xotic750/get-function-args-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/get-function-args-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/get-function-args-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca name=\"module_get-function-args-x\"\u003e\u003c/a\u003e\n\n## get-function-args-x\n\nGet the args of the function.\n \n\u003ca name=\"exp_module_get-function-args-x--module.exports\"\u003e\u003c/a\u003e\n\n### `module.exports(fn)` ⇒ \u003ccode\u003eundefined\u003c/code\u003e \\| \u003ccode\u003eArray\u003c/code\u003e ⏏\n\nThis method returns the args of the function, or `undefined` if not\na function.\n\n**Kind**: Exported function  \n**Returns**: \u003ccode\u003eundefined\u003c/code\u003e \\| \u003ccode\u003eArray\u003c/code\u003e - The args of the function, or `undefined` if\nnot a function.\n\n| Param | Type                  | Description                      |\n| ----- | --------------------- | -------------------------------- |\n| fn    | \u003ccode\u003efunction\u003c/code\u003e | The function to get the args of. |\n\n**Example**\n\n```js\nimport getFunctionArgs from 'get-function-args-x';\n\ngetFunctionArgs(); // undefined\ngetFunctionArgs(Number.MIN_VALUE); // undefined\ngetFunctionArgs('abc'); // undefined\ngetFunctionArgs(true); // undefined\ngetFunctionArgs({name: 'abc'}); // undefined\ngetFunctionArgs(function() {}); // []\ngetFunctionArgs(new Function()); // []\ngetFunctionArgs(function test() {}); // []\ngetFunctionArgs(function test(a, b) {}); // ['a', 'b']\ngetFunctionArgs(function* test(a, b) {}); // ['a', 'b']\ngetFunctionArgs((a, b) =\u003e {}); // ['a', 'b']\ngetFunctionArgs(async function test(a, b) {}); // ['a', 'b']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fget-function-args-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxotic750%2Fget-function-args-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fget-function-args-x/lists"}