PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/p-pipe

Просмотр файла: index.js

'use strict';

module.exports = (...functions) => {
	if (functions.length === 0) {
		throw new Error('Expected at least one argument');
	}

	return async input => {
		let currentValue = input;

		for (const fn of functions) {
			currentValue = await fn(currentValue); // eslint-disable-line no-await-in-loop
		}

		return currentValue;
	};
};

Выполнить команду


Для локальной разработки. Не используйте в интернете!