Usage

Use an offline document only if its file is still present.

tsx
// Use an offline document only if its file is still present.
import { fileSystem } from 'kuito';

const uri = fileSystem.cache + 'article.txt';
const article = (await fileSystem.exists(uri)) ? await fileSystem.read(uri) : null;
console.log(article ?? 'Download the article first');

Signatures

ts
(uri: string): Promise<boolean>

Parameters

NameTypeRequiredDescription
uristringYes—

Returns

Promise<boolean>

Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.