{"library":"get-func-name","type":"library","category":null,"description":"get-func-name is a specialized utility library within the ChaiJS ecosystem, designed to securely and consistently retrieve the name of a JavaScript function. It offers a single, reliable API that works across both Node.js and browser environments, addressing inconsistencies that can arise from direct property access or varying runtime behaviors. The current stable version is `3.0.0`, which marks a definitive transition to being an ES Module (ESM) exclusively. This follows a previous, temporary ESM introduction and subsequent reversion in the v2.x series. The library maintains a focused release cadence driven by maintenance, bug fixes, and critical updates, such as the security patch in v2.0.1. Its primary differentiator is its cross-platform compatibility and robustness in extracting function names, making it a foundational tool for introspection in testing frameworks and other JavaScript libraries.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","get-func-name","chai util"],"last_verified":"Wed May 27","install":[{"cmd":"npm install get-func-name","imports":["import { getFuncName } from 'get-func-name';","import * as getFuncNameModule from 'get-func-name';\nconst funcName = getFuncNameModule.getFuncName(myFunction);"]},{"cmd":"yarn add get-func-name","imports":[]},{"cmd":"pnpm add get-func-name","imports":[]}],"homepage":null,"github":"https://github.com/chaijs/get-func-name","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/get-func-name","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/get-func-name/compatibility"}}