MCPcopy
hub / github.com/angular/angular-cli / readText

Method readText

packages/angular_devkit/schematics/src/tree/interface.ts:95–95  ·  view source on GitHub ↗

* Reads a file from the Tree as a UTF-8 encoded text file. * * @param path The path of the file to read. * @returns A string containing the contents of the file. * @throws FileDoesNotExistException if the file is not found. * @throws An error if the file contains invalid UTF-8

(path: string)

Source from the content-addressed store, hash-verified

93 * @throws An error if the file contains invalid UTF-8 characters.
94 */
95 readText(path: string): string;
96
97 /**
98 * Reads and parses a file from the Tree as a UTF-8 encoded JSON file.

Callers 15

index_spec.tsFile · 0.65
index_spec.tsFile · 0.65
addImportToNgModuleFunction · 0.65
index_spec.tsFile · 0.65
getTsSourceFileFunction · 0.65
addSnippetFunction · 0.65
findBootstrapModuleCallFunction · 0.65
findBootstrapModulePathFunction · 0.65
readFileMethod · 0.65
findModuleFromOptionsFunction · 0.65
constructorMethod · 0.65

Implementers 4

HostTreepackages/angular_devkit/schematics/src
ScopedTreepackages/angular_devkit/schematics/src
NullTreepackages/angular_devkit/schematics/src
DelegateTreepackages/angular_devkit/schematics/src

Calls

no outgoing calls

Tested by

no test coverage detected