文件操作 - utils.mjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/unenv/runtime/npm/consola/utils.mjs
编辑文件内容
const _colorize = String; export const colorize = (color, str) => _colorize(str); export const getColor = (color, fallback) => () => _colorize(color); export const stripAnsi = (str) => str; export const box = (str, opts) => str; export const align = (alignment, str, len, space) => str; export const leftAlign = (str, len, space) => str; export const rightAlign = (str, len, space) => str; export const centerAlign = (str, len, space) => str; export const colors = new Proxy({}, { get(_, colorName) { return _colorize; } }); export default { colorize, getColor, stripAnsi, align, leftAlign, rightAlign, centerAlign, box, colors };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件