Linux bear.hostingplus.cl 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
LiteSpeed
Server IP : 192.140.57.17 & Your IP : 216.73.216.57
Domains :
Cant Read [ /etc/named.conf ]
User : explo
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
bitninja-dispatcher /
node_modules /
async /
Delete
Unzip
Name
Size
Permission
Date
Action
dist
[ DIR ]
drwxr-xr-x
2026-02-20 01:17
internal
[ DIR ]
drwxr-xr-x
2026-02-20 01:17
CHANGELOG.md
32.59
KB
-rw-r--r--
2026-02-18 13:02
LICENSE
1.04
KB
-rw-r--r--
2026-02-18 13:02
README.md
3.14
KB
-rw-r--r--
2026-02-18 13:02
all.js
3.47
KB
-rw-r--r--
2026-02-18 13:02
allLimit.js
1.71
KB
-rw-r--r--
2026-02-18 13:02
allSeries.js
1.61
KB
-rw-r--r--
2026-02-18 13:02
any.js
3.71
KB
-rw-r--r--
2026-02-18 13:02
anyLimit.js
1.74
KB
-rw-r--r--
2026-02-18 13:02
anySeries.js
1.64
KB
-rw-r--r--
2026-02-18 13:02
apply.js
3.05
KB
-rw-r--r--
2026-02-18 13:02
applyEach.js
1.94
KB
-rw-r--r--
2026-02-18 13:02
applyEachSeries.js
1.27
KB
-rw-r--r--
2026-02-18 13:02
asyncify.js
3.65
KB
-rw-r--r--
2026-02-18 13:02
auto.js
11.58
KB
-rw-r--r--
2026-02-18 13:02
autoInject.js
6.93
KB
-rw-r--r--
2026-02-18 13:02
bower.json
239
B
-rw-r--r--
2026-02-18 13:02
cargo.js
2.68
KB
-rw-r--r--
2026-02-18 13:02
cargoQueue.js
3.27
KB
-rw-r--r--
2026-02-18 13:02
compose.js
1.53
KB
-rw-r--r--
2026-02-18 13:02
concat.js
3.57
KB
-rw-r--r--
2026-02-18 13:02
concatLimit.js
2.05
KB
-rw-r--r--
2026-02-18 13:02
concatSeries.js
1.44
KB
-rw-r--r--
2026-02-18 13:02
constant.js
2.91
KB
-rw-r--r--
2026-02-18 13:02
detect.js
3.17
KB
-rw-r--r--
2026-02-18 13:02
detectLimit.js
1.79
KB
-rw-r--r--
2026-02-18 13:02
detectSeries.js
1.7
KB
-rw-r--r--
2026-02-18 13:02
dir.js
1.27
KB
-rw-r--r--
2026-02-18 13:02
doDuring.js
2.25
KB
-rw-r--r--
2026-02-18 13:02
doUntil.js
1.67
KB
-rw-r--r--
2026-02-18 13:02
doWhilst.js
2.25
KB
-rw-r--r--
2026-02-18 13:02
during.js
2.28
KB
-rw-r--r--
2026-02-18 13:02
each.js
3.93
KB
-rw-r--r--
2026-02-18 13:02
eachLimit.js
1.75
KB
-rw-r--r--
2026-02-18 13:02
eachOf.js
5.61
KB
-rw-r--r--
2026-02-18 13:02
eachOfLimit.js
1.6
KB
-rw-r--r--
2026-02-18 13:02
eachOfSeries.js
1.3
KB
-rw-r--r--
2026-02-18 13:02
eachSeries.js
1.54
KB
-rw-r--r--
2026-02-18 13:02
ensureAsync.js
2.26
KB
-rw-r--r--
2026-02-18 13:02
every.js
3.47
KB
-rw-r--r--
2026-02-18 13:02
everyLimit.js
1.71
KB
-rw-r--r--
2026-02-18 13:02
everySeries.js
1.61
KB
-rw-r--r--
2026-02-18 13:02
filter.js
2.83
KB
-rw-r--r--
2026-02-18 13:02
filterLimit.js
1.62
KB
-rw-r--r--
2026-02-18 13:02
filterSeries.js
1.51
KB
-rw-r--r--
2026-02-18 13:02
find.js
3.17
KB
-rw-r--r--
2026-02-18 13:02
findLimit.js
1.79
KB
-rw-r--r--
2026-02-18 13:02
findSeries.js
1.7
KB
-rw-r--r--
2026-02-18 13:02
flatMap.js
3.57
KB
-rw-r--r--
2026-02-18 13:02
flatMapLimit.js
2.05
KB
-rw-r--r--
2026-02-18 13:02
flatMapSeries.js
1.44
KB
-rw-r--r--
2026-02-18 13:02
foldl.js
4.77
KB
-rw-r--r--
2026-02-18 13:02
foldr.js
1.46
KB
-rw-r--r--
2026-02-18 13:02
forEach.js
3.93
KB
-rw-r--r--
2026-02-18 13:02
forEachLimit.js
1.75
KB
-rw-r--r--
2026-02-18 13:02
forEachOf.js
5.61
KB
-rw-r--r--
2026-02-18 13:02
forEachOfLimit.js
1.6
KB
-rw-r--r--
2026-02-18 13:02
forEachOfSeries.js
1.3
KB
-rw-r--r--
2026-02-18 13:02
forEachSeries.js
1.54
KB
-rw-r--r--
2026-02-18 13:02
forever.js
2.07
KB
-rw-r--r--
2026-02-18 13:02
groupBy.js
3.51
KB
-rw-r--r--
2026-02-18 13:02
groupByLimit.js
2.39
KB
-rw-r--r--
2026-02-18 13:02
groupBySeries.js
1.3
KB
-rw-r--r--
2026-02-18 13:02
index.js
19.27
KB
-rw-r--r--
2026-02-18 13:02
inject.js
4.77
KB
-rw-r--r--
2026-02-18 13:02
log.js
1.17
KB
-rw-r--r--
2026-02-18 13:02
map.js
4.49
KB
-rw-r--r--
2026-02-18 13:02
mapLimit.js
1.58
KB
-rw-r--r--
2026-02-18 13:02
mapSeries.js
1.48
KB
-rw-r--r--
2026-02-18 13:02
mapValues.js
4.48
KB
-rw-r--r--
2026-02-18 13:02
mapValuesLimit.js
2.07
KB
-rw-r--r--
2026-02-18 13:02
mapValuesSeries.js
1.34
KB
-rw-r--r--
2026-02-18 13:02
memoize.js
3
KB
-rw-r--r--
2026-02-18 13:02
nextTick.js
1.44
KB
-rw-r--r--
2026-02-18 13:02
package.json
2.91
KB
-rw-r--r--
2026-02-18 13:02
parallel.js
5.44
KB
-rw-r--r--
2026-02-18 13:02
parallelLimit.js
1.47
KB
-rw-r--r--
2026-02-18 13:02
priorityQueue.js
2.65
KB
-rw-r--r--
2026-02-18 13:02
queue.js
7.21
KB
-rw-r--r--
2026-02-18 13:02
race.js
2.08
KB
-rw-r--r--
2026-02-18 13:02
reduce.js
4.77
KB
-rw-r--r--
2026-02-18 13:02
reduceRight.js
1.46
KB
-rw-r--r--
2026-02-18 13:02
reflect.js
2.22
KB
-rw-r--r--
2026-02-18 13:02
reflectAll.js
2.39
KB
-rw-r--r--
2026-02-18 13:02
reject.js
2.61
KB
-rw-r--r--
2026-02-18 13:02
rejectLimit.js
1.54
KB
-rw-r--r--
2026-02-18 13:02
rejectSeries.js
1.43
KB
-rw-r--r--
2026-02-18 13:02
retry.js
5.4
KB
-rw-r--r--
2026-02-18 13:02
retryable.js
2.48
KB
-rw-r--r--
2026-02-18 13:02
select.js
2.83
KB
-rw-r--r--
2026-02-18 13:02
selectLimit.js
1.62
KB
-rw-r--r--
2026-02-18 13:02
selectSeries.js
1.51
KB
-rw-r--r--
2026-02-18 13:02
seq.js
2.59
KB
-rw-r--r--
2026-02-18 13:02
series.js
5.69
KB
-rw-r--r--
2026-02-18 13:02
setImmediate.js
1.36
KB
-rw-r--r--
2026-02-18 13:02
some.js
3.71
KB
-rw-r--r--
2026-02-18 13:02
someLimit.js
1.74
KB
-rw-r--r--
2026-02-18 13:02
someSeries.js
1.64
KB
-rw-r--r--
2026-02-18 13:02
sortBy.js
6.07
KB
-rw-r--r--
2026-02-18 13:02
timeout.js
2.69
KB
-rw-r--r--
2026-02-18 13:02
times.js
1.45
KB
-rw-r--r--
2026-02-18 13:02
timesLimit.js
1.41
KB
-rw-r--r--
2026-02-18 13:02
timesSeries.js
1.04
KB
-rw-r--r--
2026-02-18 13:02
transform.js
5.44
KB
-rw-r--r--
2026-02-18 13:02
tryEach.js
2.48
KB
-rw-r--r--
2026-02-18 13:02
unmemoize.js
668
B
-rw-r--r--
2026-02-18 13:02
until.js
2.03
KB
-rw-r--r--
2026-02-18 13:02
waterfall.js
3.13
KB
-rw-r--r--
2026-02-18 13:02
whilst.js
2.28
KB
-rw-r--r--
2026-02-18 13:02
wrapSync.js
3.65
KB
-rw-r--r--
2026-02-18 13:02
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'];