Home / Function/ lastNthChar() — vite Function Reference

lastNthChar() — vite Function Reference

Architecture documentation for the lastNthChar() function in importMetaGlob.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  dd94affa_a54f_fda1_045d_230eb3b29bf5["lastNthChar()"]
  b68d9c02_4026_8cfa_8eb1_35ec4a8f23cb["importMetaGlob.ts"]
  dd94affa_a54f_fda1_045d_230eb3b29bf5 -->|defined in| b68d9c02_4026_8cfa_8eb1_35ec4a8f23cb
  ee8a5ec4_ca35_74a5_092e_1714daae7f56["globSafeResolvedPath()"]
  ee8a5ec4_ca35_74a5_092e_1714daae7f56 -->|calls| dd94affa_a54f_fda1_045d_230eb3b29bf5
  style dd94affa_a54f_fda1_045d_230eb3b29bf5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/importMetaGlob.ts lines 617–619

function lastNthChar(str: string, n: number) {
  return str.charAt(str.length - 1 - n)
}

Domain

Subdomains

Frequently Asked Questions

What does lastNthChar() do?
lastNthChar() is a function in the vite codebase, defined in packages/vite/src/node/plugins/importMetaGlob.ts.
Where is lastNthChar() defined?
lastNthChar() is defined in packages/vite/src/node/plugins/importMetaGlob.ts at line 617.
What calls lastNthChar()?
lastNthChar() is called by 1 function(s): globSafeResolvedPath.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free