文件操作 - old-value.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/autoprefixer/lib/old-value.js
编辑文件内容
let utils = require('./utils') class OldValue { constructor(unprefixed, prefixed, string, regexp) { this.unprefixed = unprefixed this.prefixed = prefixed this.string = string || prefixed this.regexp = regexp || utils.regexp(prefixed) } /** * Check, that value contain old value */ check(value) { if (value.includes(this.string)) { return !!value.match(this.regexp) } return false } } module.exports = OldValue
修改文件时间
将文件时间修改为当前时间的前一年
删除文件