Togoder security

npm package security report

generator-function npm package 2.0.1: is it safe?

Medium: risky but common patterns, not malware.

Needs review Version 2.0.1 Files reviewed 5 Size 3.2 KB Scanned

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.

0
critical
0
high
1
medium
0
low

Findings 1

Login to view the findings

What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.

medium

Login to view

Files reviewed

FileVerdictResult
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

VersionVerdictFilesScanned
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.

Related security reports