文件操作 - detect.d.cts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/package-manager-detector/dist/detect.d.cts
编辑文件内容
import { D as DetectOptions, d as DetectResult, a as AgentName } from './shared/package-manager-detector.257741fc.cjs'; /** * Detects the package manager used in the project. * @param options {DetectOptions} The options to use when detecting the package manager. * @returns {Promise<DetectResult | null>} The detected package manager or `null` if not found. */ declare function detect(options?: DetectOptions): Promise<DetectResult | null>; /** * Detects the package manager used in the project. * @param options {DetectOptions} The options to use when detecting the package manager. * @returns {DetectResult | null>} The detected package manager or `null` if not found. */ declare function detectSync(options?: DetectOptions): DetectResult | null; /** * Detects the package manager used in the running process. * * This method will check for `process.env.npm_config_user_agent`. */ declare function getUserAgent(): AgentName | null; export { detect, detectSync, getUserAgent };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件