文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/npm-run-path/node_modules/path-key/index.d.ts
编辑文件内容
export interface Options { /** Use a custom environment variables object. Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env). */ readonly env?: Record<string, string | undefined>; /** Get the PATH key for a specific platform. Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform). */ readonly platform?: NodeJS.Platform; } /** Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform. @example ``` import pathKey from 'path-key'; const key = pathKey(); //=> 'PATH' const PATH = process.env[key]; //=> '/usr/local/bin:/usr/bin:/bin' ``` */ export default function pathKey(options?: Options): string;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件