UNPKG

@stryke/fs

Version:

A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.

18 lines (17 loc) 707 B
import type { InstallPackageOptions } from "@antfu/install-pkg"; import "tinyexec"; /** * Install a package * * @param name - The name of the package to install * @param options - The options to use when installing the package * @returns The result of the command or an exception */ export declare const install: (names: string | string[], options?: InstallPackageOptions) => Promise<import("tinyexec").Output>; /** * Check if a package exists and install it if it does not * * @param name - The name of the package to check * @param options - The options to use when installing the package */ export declare const packageExists: (name: string, options?: InstallPackageOptions) => Promise<void>;