文件操作 - addComments.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@babel/types/lib/comments/addComments.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = addComments; function addComments(node, type, comments) { if (!comments || !node) return node; const key = `${type}Comments`; if (node[key]) { if (type === "leading") { node[key] = comments.concat(node[key]); } else { node[key].push(...comments); } } else { node[key] = comments; } return node; } //# sourceMappingURL=addComments.js.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件