Utilities
→ there exist various utility modules in the TypeScript LCE to aid development
Overview:
FileUtils
: operations with files, directories and their paths- mainly used for normalizing file system paths to consistently use forward slashes (
normalizePath
)
- mainly used for normalizing file system paths to consistently use forward slashes (
ModulePathUtils
: operations on FQNs and the module paths contained within themNodeUtils
: operations to call on Node-specific APIs for package name resolution, etc.processor.utils.ts
: provides various functions to be used by processors for easy access to the various processed data structurestraverser.utils.ts
: provides functions to be used by traversers to better orchestrate the traversal processProjectUtils
: contains logic for project detection and information extraction