Skip to content

looksGeneratedContent

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/techdocs/significance.ts

Content that is machine-generated, whatever the file is called.

A path allowlist cannot catch public/js/app.js — a 284KB webpack bundle with an ordinary name, which the Express parser happily read as source and produced 51 endpoints from, in a repository that serves 22. Phantom endpoints are worse than missing ones: they document a surface the application does not have.

Minification is the tell that survives renaming — a bundler emits enormously long lines, and hand-written source essentially never does.

Signature

ts
function looksGeneratedContent(content: string | undefined): boolean

Parameters

NameType
content`string

Returns: boolean

Was this page helpful?

Download as PDF