UNPKG

obsidian-dev-utils

Version:

This is the collection of useful functions that you can use for your Obsidian plugin development

17 lines (16 loc) 782 B
/** * @packageDocumentation * * Contains utility functions for Node.js modules. */ import * as process from 'node:process'; export { createHook, executionAsyncId } from 'node:async_hooks'; export { spawn } from 'node:child_process'; export { existsSync, readFileSync, statSync, unlinkSync, watch, writeFileSync } from 'node:fs'; export type { Dirent, FSWatcher, ObjectEncodingOptions, PathLike, Stats, WatchEventType } from 'node:fs'; export { process }; export { cp, mkdir, readdir, readFile, rename, rm, stat, unlink, writeFile } from 'node:fs/promises'; export { builtinModules, createRequire, Module } from 'node:module'; export { arch, endianness, tmpdir } from 'node:os'; export { createInterface } from 'node:readline/promises'; export { fileURLToPath } from 'node:url';