Set a function’s name property in JavaScript by calling the exported helper with a function (fn), the desired name (name), and an optional loose flag to avoid throwing on failure. It returns the original function, useful when you need stable or clearer function names for debugging or introspection.
Project status
- The repo appears to be maintained, with an upstream push recorded on 2025-12-30, and at least one tagged update (v2.0.2) that added TypeScript support.
- The apparent update cadence is low, with updates visible in 2023-09 (v2.0.0, v2.0.1) and 2024-02 (v2.0.2), and no additional tagged updates shown after v2.0.2 in the provided data.
AI summary generated Today
Recent updates
v2.0.2
2/20/2024v2.0.2 adds TypeScript support (a new index.d.ts and a package.json types entry), and updates a few runtime dependencies. The runtime JS change is small, but it includes a refactor to use es-errors/type for the thrown TypeError.
Featuresv2.0.1
9/13/2023v2.0.1 updates the package version and adjusts dependency placement so that `functions-have-names` is available at runtime. Release notes were not provided by the publisher, so the only substantive change visible is in the dependency configuration.
v2.0.0
9/13/2023The provided release data does not include any release notes or description of changes for v2.0.0. As a result, it is not possible to identify feature additions, bug fixes, breaking changes, or migration requirements from the release notes alone.