Skip to content

Commit 568e388

Browse files
jdaltonclaude
andcommitted
docs: clarify isNpmBuiltinName function comment
Specify that the function checks for Node.js built-in module names rather than just 'built-in module name' for better clarity. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e3ff49b commit 568e388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/purl-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const getNpmLegacyNames = (() => {
166166
})()
167167

168168
/**
169-
* Check if npm identifier is a built-in module name.
169+
* Check if npm identifier is a Node.js built-in module name.
170170
*/
171171
const isNpmBuiltinName = (id: string): boolean =>
172172
getNpmBuiltinNames().includes(id.toLowerCase())

0 commit comments

Comments
 (0)