/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/vinyl-fs/lib/src/prepare.js
22 строки
444 B
EvgeniyBudaev
Initial commit
17 фев 2020, 09:02
17 фев 2020, 09:02
bb6f06f
Код
Авторство
О чём код?
'use strict'; var through = require('through2'); function prepareRead(optResolver) { function normalize(file, enc, callback) { var since = optResolver.resolve('since', file); // Skip this file if since option is set and current file is too old if (file.stat && file.stat.mtime <= since) { return callback(); } return callback(null, file); } return through.obj(normalize); } module.exports = prepareRead;