Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
pm2 /
node_modules /
async /
Delete
Unzip
Name
Size
Permission
Date
Action
dist
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
internal
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
CHANGELOG.md
32.7
KB
-rw-r--r--
2025-04-08 13:05
LICENSE
1.04
KB
-rw-r--r--
2025-04-08 13:05
README.md
3.14
KB
-rw-r--r--
2025-04-08 13:05
all.js
3.48
KB
-rw-r--r--
2025-04-08 13:05
allLimit.js
1.71
KB
-rw-r--r--
2025-04-08 13:05
allSeries.js
1.61
KB
-rw-r--r--
2025-04-08 13:05
any.js
3.71
KB
-rw-r--r--
2025-04-08 13:05
anyLimit.js
1.74
KB
-rw-r--r--
2025-04-08 13:05
anySeries.js
1.64
KB
-rw-r--r--
2025-04-08 13:05
apply.js
217
B
-rw-r--r--
2025-04-08 13:05
applyEach.js
1.94
KB
-rw-r--r--
2025-04-08 13:05
applyEachSeries.js
1.27
KB
-rw-r--r--
2025-04-08 13:05
asyncify.js
3.67
KB
-rw-r--r--
2025-04-08 13:05
auto.js
11.58
KB
-rw-r--r--
2025-04-08 13:05
autoInject.js
6.93
KB
-rw-r--r--
2025-04-08 13:05
bower.json
239
B
-rw-r--r--
2025-04-08 13:05
cargo.js
2.68
KB
-rw-r--r--
2025-04-08 13:05
cargoQueue.js
3.27
KB
-rw-r--r--
2025-04-08 13:05
compose.js
1.53
KB
-rw-r--r--
2025-04-08 13:05
concat.js
3.57
KB
-rw-r--r--
2025-04-08 13:05
concatLimit.js
2.04
KB
-rw-r--r--
2025-04-08 13:05
concatSeries.js
1.44
KB
-rw-r--r--
2025-04-08 13:05
constant.js
302
B
-rw-r--r--
2025-04-08 13:05
detect.js
3.17
KB
-rw-r--r--
2025-04-08 13:05
detectLimit.js
1.79
KB
-rw-r--r--
2025-04-08 13:05
detectSeries.js
1.7
KB
-rw-r--r--
2025-04-08 13:05
dir.js
1.27
KB
-rw-r--r--
2025-04-08 13:05
doDuring.js
2.25
KB
-rw-r--r--
2025-04-08 13:05
doUntil.js
1.66
KB
-rw-r--r--
2025-04-08 13:05
doWhilst.js
2.25
KB
-rw-r--r--
2025-04-08 13:05
during.js
2.28
KB
-rw-r--r--
2025-04-08 13:05
each.js
3.93
KB
-rw-r--r--
2025-04-08 13:05
eachLimit.js
1.75
KB
-rw-r--r--
2025-04-08 13:05
eachOf.js
5.61
KB
-rw-r--r--
2025-04-08 13:05
eachOfLimit.js
1.6
KB
-rw-r--r--
2025-04-08 13:05
eachOfSeries.js
1.3
KB
-rw-r--r--
2025-04-08 13:05
eachSeries.js
1.54
KB
-rw-r--r--
2025-04-08 13:05
ensureAsync.js
2.26
KB
-rw-r--r--
2025-04-08 13:05
every.js
3.48
KB
-rw-r--r--
2025-04-08 13:05
everyLimit.js
1.71
KB
-rw-r--r--
2025-04-08 13:05
everySeries.js
1.61
KB
-rw-r--r--
2025-04-08 13:05
filter.js
2.83
KB
-rw-r--r--
2025-04-08 13:05
filterLimit.js
1.62
KB
-rw-r--r--
2025-04-08 13:05
filterSeries.js
1.51
KB
-rw-r--r--
2025-04-08 13:05
find.js
3.17
KB
-rw-r--r--
2025-04-08 13:05
findLimit.js
1.79
KB
-rw-r--r--
2025-04-08 13:05
findSeries.js
1.7
KB
-rw-r--r--
2025-04-08 13:05
flatMap.js
3.57
KB
-rw-r--r--
2025-04-08 13:05
flatMapLimit.js
2.04
KB
-rw-r--r--
2025-04-08 13:05
flatMapSeries.js
1.44
KB
-rw-r--r--
2025-04-08 13:05
foldl.js
4.76
KB
-rw-r--r--
2025-04-08 13:05
foldr.js
1.47
KB
-rw-r--r--
2025-04-08 13:05
forEach.js
3.93
KB
-rw-r--r--
2025-04-08 13:05
forEachLimit.js
1.75
KB
-rw-r--r--
2025-04-08 13:05
forEachOf.js
5.61
KB
-rw-r--r--
2025-04-08 13:05
forEachOfLimit.js
1.6
KB
-rw-r--r--
2025-04-08 13:05
forEachOfSeries.js
1.3
KB
-rw-r--r--
2025-04-08 13:05
forEachSeries.js
1.54
KB
-rw-r--r--
2025-04-08 13:05
forever.js
2.07
KB
-rw-r--r--
2025-04-08 13:05
groupBy.js
3.51
KB
-rw-r--r--
2025-04-08 13:05
groupByLimit.js
2.39
KB
-rw-r--r--
2025-04-08 13:05
groupBySeries.js
1.3
KB
-rw-r--r--
2025-04-08 13:05
index.js
19.47
KB
-rw-r--r--
2025-04-08 13:05
inject.js
4.76
KB
-rw-r--r--
2025-04-08 13:05
log.js
1.17
KB
-rw-r--r--
2025-04-08 13:05
map.js
4.49
KB
-rw-r--r--
2025-04-08 13:05
mapLimit.js
1.58
KB
-rw-r--r--
2025-04-08 13:05
mapSeries.js
1.48
KB
-rw-r--r--
2025-04-08 13:05
mapValues.js
4.48
KB
-rw-r--r--
2025-04-08 13:05
mapValuesLimit.js
2.07
KB
-rw-r--r--
2025-04-08 13:05
mapValuesSeries.js
1.35
KB
-rw-r--r--
2025-04-08 13:05
memoize.js
3
KB
-rw-r--r--
2025-04-08 13:05
nextTick.js
1.44
KB
-rw-r--r--
2025-04-08 13:05
package.json
2.15
KB
-rw-r--r--
2025-04-08 13:05
parallel.js
5.44
KB
-rw-r--r--
2025-04-08 13:05
parallelLimit.js
1.48
KB
-rw-r--r--
2025-04-08 13:05
priorityQueue.js
1.41
KB
-rw-r--r--
2025-04-08 13:05
queue.js
626
B
-rw-r--r--
2025-04-08 13:05
race.js
2.08
KB
-rw-r--r--
2025-04-08 13:05
reduce.js
4.76
KB
-rw-r--r--
2025-04-08 13:05
reduceRight.js
1.47
KB
-rw-r--r--
2025-04-08 13:05
reflect.js
2.21
KB
-rw-r--r--
2025-04-08 13:05
reflectAll.js
2.39
KB
-rw-r--r--
2025-04-08 13:05
reject.js
2.61
KB
-rw-r--r--
2025-04-08 13:05
rejectLimit.js
1.54
KB
-rw-r--r--
2025-04-08 13:05
rejectSeries.js
1.44
KB
-rw-r--r--
2025-04-08 13:05
retry.js
5.39
KB
-rw-r--r--
2025-04-08 13:05
retryable.js
2.48
KB
-rw-r--r--
2025-04-08 13:05
select.js
2.83
KB
-rw-r--r--
2025-04-08 13:05
selectLimit.js
1.62
KB
-rw-r--r--
2025-04-08 13:05
selectSeries.js
1.51
KB
-rw-r--r--
2025-04-08 13:05
seq.js
2.59
KB
-rw-r--r--
2025-04-08 13:05
series.js
5.69
KB
-rw-r--r--
2025-04-08 13:05
setImmediate.js
1.36
KB
-rw-r--r--
2025-04-08 13:05
some.js
3.71
KB
-rw-r--r--
2025-04-08 13:05
someLimit.js
1.74
KB
-rw-r--r--
2025-04-08 13:05
someSeries.js
1.64
KB
-rw-r--r--
2025-04-08 13:05
sortBy.js
6.06
KB
-rw-r--r--
2025-04-08 13:05
timeout.js
2.69
KB
-rw-r--r--
2025-04-08 13:05
times.js
1.45
KB
-rw-r--r--
2025-04-08 13:05
timesLimit.js
1.42
KB
-rw-r--r--
2025-04-08 13:05
timesSeries.js
1.04
KB
-rw-r--r--
2025-04-08 13:05
transform.js
5.43
KB
-rw-r--r--
2025-04-08 13:05
tryEach.js
2.48
KB
-rw-r--r--
2025-04-08 13:05
unmemoize.js
665
B
-rw-r--r--
2025-04-08 13:05
until.js
2.03
KB
-rw-r--r--
2025-04-08 13:05
waterfall.js
3.13
KB
-rw-r--r--
2025-04-08 13:05
whilst.js
2.28
KB
-rw-r--r--
2025-04-08 13:05
wrapSync.js
3.67
KB
-rw-r--r--
2025-04-08 13:05
Save
Rename
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = transform; var _eachOf = require('./eachOf.js'); var _eachOf2 = _interopRequireDefault(_eachOf); var _once = require('./internal/once.js'); var _once2 = _interopRequireDefault(_once); var _wrapAsync = require('./internal/wrapAsync.js'); var _wrapAsync2 = _interopRequireDefault(_wrapAsync); var _promiseCallback = require('./internal/promiseCallback.js'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * A relative of `reduce`. Takes an Object or Array, and iterates over each * element in parallel, each step potentially mutating an `accumulator` value. * The type of the accumulator defaults to the type of collection passed in. * * @name transform * @static * @memberOf module:Collections * @method * @category Collection * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over. * @param {*} [accumulator] - The initial state of the transform. If omitted, * it will default to an empty Object or Array, depending on the type of `coll` * @param {AsyncFunction} iteratee - A function applied to each item in the * collection that potentially modifies the accumulator. * Invoked with (accumulator, item, key, callback). * @param {Function} [callback] - A callback which is called after all the * `iteratee` functions have finished. Result is the transformed accumulator. * Invoked with (err, result). * @returns {Promise} a promise, if no callback provided * @example * * // file1.txt is a file that is 1000 bytes in size * // file2.txt is a file that is 2000 bytes in size * // file3.txt is a file that is 3000 bytes in size * * // helper function that returns human-readable size format from bytes * function formatBytes(bytes, decimals = 2) { * // implementation not included for brevity * return humanReadbleFilesize; * } * * const fileList = ['file1.txt','file2.txt','file3.txt']; * * // asynchronous function that returns the file size, transformed to human-readable format * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc. * function transformFileSize(acc, value, key, callback) { * fs.stat(value, function(err, stat) { * if (err) { * return callback(err); * } * acc[key] = formatBytes(stat.size); * callback(null); * }); * } * * // Using callbacks * async.transform(fileList, transformFileSize, function(err, result) { * if(err) { * console.log(err); * } else { * console.log(result); * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ] * } * }); * * // Using Promises * async.transform(fileList, transformFileSize) * .then(result => { * console.log(result); * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ] * }).catch(err => { * console.log(err); * }); * * // Using async/await * (async () => { * try { * let result = await async.transform(fileList, transformFileSize); * console.log(result); * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ] * } * catch (err) { * console.log(err); * } * })(); * * @example * * // file1.txt is a file that is 1000 bytes in size * // file2.txt is a file that is 2000 bytes in size * // file3.txt is a file that is 3000 bytes in size * * // helper function that returns human-readable size format from bytes * function formatBytes(bytes, decimals = 2) { * // implementation not included for brevity * return humanReadbleFilesize; * } * * const fileMap = { f1: 'file1.txt', f2: 'file2.txt', f3: 'file3.txt' }; * * // asynchronous function that returns the file size, transformed to human-readable format * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc. * function transformFileSize(acc, value, key, callback) { * fs.stat(value, function(err, stat) { * if (err) { * return callback(err); * } * acc[key] = formatBytes(stat.size); * callback(null); * }); * } * * // Using callbacks * async.transform(fileMap, transformFileSize, function(err, result) { * if(err) { * console.log(err); * } else { * console.log(result); * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' } * } * }); * * // Using Promises * async.transform(fileMap, transformFileSize) * .then(result => { * console.log(result); * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' } * }).catch(err => { * console.log(err); * }); * * // Using async/await * async () => { * try { * let result = await async.transform(fileMap, transformFileSize); * console.log(result); * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' } * } * catch (err) { * console.log(err); * } * } * */ function transform(coll, accumulator, iteratee, callback) { if (arguments.length <= 3 && typeof accumulator === 'function') { callback = iteratee; iteratee = accumulator; accumulator = Array.isArray(coll) ? [] : {}; } callback = (0, _once2.default)(callback || (0, _promiseCallback.promiseCallback)()); var _iteratee = (0, _wrapAsync2.default)(iteratee); (0, _eachOf2.default)(coll, (v, k, cb) => { _iteratee(accumulator, v, k, cb); }, err => callback(err, accumulator)); return callback[_promiseCallback.PROMISE_SYMBOL]; } module.exports = exports.default;