文件操作 - assert.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/eslint-scope/lib/assert.js
编辑文件内容
/** * @fileoverview Assertion utilities. * @author Nicholas C. Zakas */ /** * Throws an error if the given condition is not truthy. * @param {boolean} condition The condition to check. * @param {string} message The message to include with the error. * @returns {void} * @throws {Error} When the condition is not truthy. */ export function assert(condition, message = "Assertion failed.") { if (!condition) { throw new Error(message); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件