licenseEntryToMarkdown() — vite Function Reference
Architecture documentation for the licenseEntryToMarkdown() function in license.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 042b8bcd_ab30_7f68_d37b_fe2aac735fd9["licenseEntryToMarkdown()"] 82f800f1_6da8_8cca_d4a5_6dbc08ca3747["license.ts"] 042b8bcd_ab30_7f68_d37b_fe2aac735fd9 -->|defined in| 82f800f1_6da8_8cca_d4a5_6dbc08ca3747 481d1103_be94_cde4_36c2_68b3faf11385["licensePlugin()"] 481d1103_be94_cde4_36c2_68b3faf11385 -->|calls| 042b8bcd_ab30_7f68_d37b_fe2aac735fd9 style 042b8bcd_ab30_7f68_d37b_fe2aac735fd9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/plugins/license.ts lines 116–140
function licenseEntryToMarkdown(licenses: LicenseEntry[]) {
if (licenses.length === 0) {
return `\
# Licenses
The app does not bundle any dependencies with licenses.
`
}
let text = `\
# Licenses
The app bundles dependencies which contain the following licenses:
`
for (const license of licenses) {
const nameAndVersionText = `${license.name} - ${license.version}`
const identifierText = license.identifier ? ` (${license.identifier})` : ''
text += `\n## ${nameAndVersionText}${identifierText}\n`
if (license.text) {
text += `\n${license.text}\n`
}
}
return text
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does licenseEntryToMarkdown() do?
licenseEntryToMarkdown() is a function in the vite codebase, defined in packages/vite/src/node/plugins/license.ts.
Where is licenseEntryToMarkdown() defined?
licenseEntryToMarkdown() is defined in packages/vite/src/node/plugins/license.ts at line 116.
What calls licenseEntryToMarkdown()?
licenseEntryToMarkdown() is called by 1 function(s): licensePlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free