文件操作 - package.json
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/path-exists/package.json
编辑文件内容
{ "name": "path-exists", "version": "5.0.0", "description": "Check if a path exists", "license": "MIT", "repository": "sindresorhus/path-exists", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "https://sindresorhus.com" }, "type": "module", "module": "./index.js", "exports": { "import": "./index.js", "require": "./index.cjs" }, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "scripts": { "test": "xo && ava && tsd" }, "files": [ "index.cjs", "index.js", "pathExists.cjs", "index.d.ts" ], "keywords": [ "path", "exists", "exist", "file", "filepath", "fs", "filesystem", "file-system", "access", "stat" ], "devDependencies": { "ava": "^3.15.0", "tsd": "^0.17.0", "xo": "^0.44.0" } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件