Summary
Togoder Security scanned the npm package generator-function@2.0.1 on Nov 2, 2026. An AI review of 5 source files produced 1 medium severity finding. The overall verdict is medium: the findings flag risky but common patterns that the package's purpose explains (dynamic code, telemetry, native installers, broad file or network access), not malware.
Findings 1
What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.
Login to view
Files reviewed
| File | Verdict | Result |
|---|---|---|
| legacy.js | medium | 1 finding |
| index.js | safe | Clear |
| index.mjs | safe | Clear |
| package.json | safe | Clear |
| require.mjs | safe | Clear |
Scanned versions of generator-function
| Version | Verdict | Files | Scanned |
|---|---|---|---|
| 2.0.1 | Needs review | 5 | Nov 2, 2026 |
Frequently asked questions
Is generator-function safe to use?
No confirmed malware was found in generator-function@2.0.1, but the review flagged 1 medium severity finding for risky patterns worth checking before you rely on it.
Does generator-function contain malware?
No malware was identified in generator-function@2.0.1 when Togoder Security scanned it on Nov 2, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was generator-function checked?
Togoder Security downloaded the published npm package and had an AI model read its 5 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan generator-function together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in generator-function@2.0.1, cost nothing.