文件操作 - identifiers.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/semver/internal/identifiers.js
编辑文件内容
const numeric = /^[0-9]+$/ const compareIdentifiers = (a, b) => { const anum = numeric.test(a) const bnum = numeric.test(b) if (anum && bnum) { a = +a b = +b } return a === b ? 0 : (anum && !bnum) ? -1 : (bnum && !anum) ? 1 : a < b ? -1 : 1 } const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) module.exports = { compareIdentifiers, rcompareIdentifiers, }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件