API 参考
    正在准备搜索索引...

    变量 VipNodeJS常量

    VipNodeJS: {
        existErrorProcess: () => void;
        existPath: (path: PathLike) => boolean;
        existSuccessProcess: () => void;
        exitProcess: (exitCode?: number) => void;
        getCPUArch: () => Architecture;
        getEnv: () => ProcessEnv;
        getProcess: () => Process;
        getProcessArgv: () => string[];
        getProcessArgvByIndex: (index: number) => null | string;
        getProcessCwd: () => string;
        getProcessEnv: (key: string) => undefined | string;
        getProcessFirstArgv: () => string;
        getProcessPlatform: () => Platform;
        getProcessStdin: () => ReadStream;
        getProcessStdout: () => WriteStream;
        getProcessVersions: () => ProcessVersions;
        isBuffer: (data: object) => boolean;
        isDirectory: (path: PathLike) => boolean;
        isExistDir: (name: string, cwd?: string) => boolean;
        isExistFile: (name: string, cwd?: string) => boolean;
        mkdirSync: (path: PathLike) => void;
        pathDirname: (dirPath: string) => string;
        pathExtname: (path: string) => string;
        pathJoin: (...paths: string[]) => string;
        pathResolve: (...pathSegments: string[]) => string;
        pick: <T, K extends string | number | symbol>(
            obj: T,
            keys: K[],
        ) => Pick<T, K>;
        printStandardNodeDevEnv: () => Promise<void>;
        readdirSync: (
            path: PathLike,
            options?:
                | null
                | BufferEncoding
                | {
                    encoding: BufferEncoding | null;
                    recursive?: boolean;
                    withFileTypes?: false;
                },
        ) => string[];
        readFileToStrByUTF8: (filePath: PathLike) => string;
        setProcessEnv: (key: string, value: string) => void;
        writeFileByUTF8: (
            filePath: PathLike,
            data: string | ArrayBufferView<ArrayBufferLike>,
        ) => void;
    } = ...

    类型声明

    • existErrorProcess: () => void
    • existPath: (path: PathLike) => boolean
    • existSuccessProcess: () => void
    • exitProcess: (exitCode?: number) => void
    • getCPUArch: () => Architecture
    • getEnv: () => ProcessEnv
    • getProcess: () => Process
    • getProcessArgv: () => string[]
    • getProcessArgvByIndex: (index: number) => null | string
    • getProcessCwd: () => string
    • getProcessEnv: (key: string) => undefined | string
    • getProcessFirstArgv: () => string
    • getProcessPlatform: () => Platform
    • getProcessStdin: () => ReadStream
    • getProcessStdout: () => WriteStream
    • getProcessVersions: () => ProcessVersions
    • isBuffer: (data: object) => boolean
    • isDirectory: (path: PathLike) => boolean
    • isExistDir: (name: string, cwd?: string) => boolean
    • isExistFile: (name: string, cwd?: string) => boolean
    • mkdirSync: (path: PathLike) => void
    • pathDirname: (dirPath: string) => string
    • pathExtname: (path: string) => string
    • pathJoin: (...paths: string[]) => string
    • pathResolve: (...pathSegments: string[]) => string
    • pick: <T, K extends string | number | symbol>(obj: T, keys: K[]) => Pick<T, K>
    • printStandardNodeDevEnv: () => Promise<void>
    • readdirSync: (
          path: PathLike,
          options?:
              | null
              | BufferEncoding
              | {
                  encoding: BufferEncoding | null;
                  recursive?: boolean;
                  withFileTypes?: false;
              },
      ) => string[]
    • readFileToStrByUTF8: (filePath: PathLike) => string
    • setProcessEnv: (key: string, value: string) => void
    • writeFileByUTF8: (filePath: PathLike, data: string | ArrayBufferView<ArrayBufferLike>) => void