The directory to scan for relevant files
The instance of IUrlFetcher to fetch URLs
Does a path exist within the project folder?
The path within the folder
Fetch content from a URL
The URL to fetch
Request options
Get a list of paths that match a pattern in the project folder.
The glob pattern
Parse the project folder
Read a file within the project folder
The path within the folder
Write to a file within the project folder
The path within the folder
The content to write to the file
Generated using TypeDoc
A base class for language parsers
A language
Parser
generates a JSON-LDSoftwarePackage
instance based on the contents of a directory. It is responsible for determining which packages the application needs, resolving the dependencies of those packages (both system and language packages) and turning those into a JSON-LDSoftwarePackage
instance.If the
Parser
finds a corresponding requirements file for the language (e.g.requirements.txt
for Python), then it uses that to determine the language packages to install. If no requirements file is found, it scans for source code files for package import statements (e.g.library(package)
in.R
files), generates a package list from those statements and creates a requirements file.