文件操作 - index.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/es-shim-unscopables/index.js
编辑文件内容
'use strict'; var has = require('has'); var hasUnscopables = typeof Symbol === 'function' && typeof Symbol.unscopables === 'symbol'; var map = hasUnscopables && Array.prototype[Symbol.unscopables]; var $TypeError = TypeError; module.exports = function shimUnscopables(method) { if (typeof method !== 'string' || !method) { throw new $TypeError('method must be a non-empty string'); } if (!has(Array.prototype, method)) { throw new $TypeError('method must be on Array.prototype'); } if (hasUnscopables) { map[method] = true; } };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件