文件操作 - index.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/p-each-series/index.js
编辑文件内容
'use strict'; const pEachSeries = async (iterable, iterator) => { let index = 0; for (const value of iterable) { // eslint-disable-next-line no-await-in-loop const returnValue = await iterator(await value, index++); if (returnValue === pEachSeries.stop) { break; } } return iterable; }; pEachSeries.stop = Symbol('pEachSeries.stop'); module.exports = pEachSeries; // TODO: Remove this for the next major release module.exports.default = pEachSeries;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件