fileSystem.read
The file as UTF-8 text; ERR_ENCODING when it isn't.
Usage
Read a packaged file.
// Read a packaged file.
import { fileSystem } from 'kuito';
const seed = await fileSystem.read(fileSystem.bundle + 'seed.json'); // read-onlySignatures
(uri: string): Promise<string>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | — |
Returns
Promise<string>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.