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.28
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 /
logform /
Delete
Unzip
Name
Size
Permission
Date
Action
dist
[ DIR ]
drwxr-xr-x
2026-02-20 01:17
examples
[ DIR ]
drwxr-xr-x
2026-02-20 01:17
.babelrc
42
B
-rw-r--r--
2026-02-18 13:02
.eslintrc
105
B
-rw-r--r--
2026-02-18 13:02
.gitattributes
26
B
-rw-r--r--
2026-02-18 13:02
CHANGELOG.md
8.54
KB
-rw-r--r--
2026-02-18 13:02
LICENSE
1.09
KB
-rw-r--r--
2026-02-18 13:02
README.md
18.3
KB
-rw-r--r--
2026-02-18 13:02
align.js
367
B
-rw-r--r--
2026-02-18 13:02
browser.js
1.72
KB
-rw-r--r--
2026-02-18 13:02
cli.js
1.19
KB
-rw-r--r--
2026-02-18 13:02
colorize.js
2.97
KB
-rw-r--r--
2026-02-18 13:02
combine.js
1.76
KB
-rw-r--r--
2026-02-18 13:02
errors.js
1.07
KB
-rw-r--r--
2026-02-18 13:02
format.js
1.14
KB
-rw-r--r--
2026-02-18 13:02
index.d.ts
5.88
KB
-rw-r--r--
2026-02-18 13:02
index.js
1.83
KB
-rw-r--r--
2026-02-18 13:02
json.js
983
B
-rw-r--r--
2026-02-18 13:02
label.js
469
B
-rw-r--r--
2026-02-18 13:02
levels.js
251
B
-rw-r--r--
2026-02-18 13:02
logstash.js
759
B
-rw-r--r--
2026-02-18 13:02
metadata.js
1.3
KB
-rw-r--r--
2026-02-18 13:02
ms.js
430
B
-rw-r--r--
2026-02-18 13:02
package.json
2.18
KB
-rw-r--r--
2026-02-18 13:02
pad-levels.js
2.81
KB
-rw-r--r--
2026-02-18 13:02
pretty-print.js
899
B
-rw-r--r--
2026-02-18 13:02
printf.js
515
B
-rw-r--r--
2026-02-18 13:02
simple.js
979
B
-rw-r--r--
2026-02-18 13:02
splat.js
4.17
KB
-rw-r--r--
2026-02-18 13:02
timestamp.js
757
B
-rw-r--r--
2026-02-18 13:02
tsconfig.json
406
B
-rw-r--r--
2026-02-18 13:02
uncolorize.js
705
B
-rw-r--r--
2026-02-18 13:02
Save
Rename
'use strict'; const format = require('./format'); /* * function cascade(formats) * Returns a function that invokes the `._format` function in-order * for the specified set of `formats`. In this manner we say that Formats * are "pipe-like", but not a pure pumpify implementation. Since there is no back * pressure we can remove all of the "readable" plumbing in Node streams. */ function cascade(formats) { if (!formats.every(isValidFormat)) { return; } return info => { let obj = info; for (let i = 0; i < formats.length; i++) { obj = formats[i].transform(obj, formats[i].options); if (!obj) { return false; } } return obj; }; } /* * function isValidFormat(format) * If the format does not define a `transform` function throw an error * with more detailed usage. */ function isValidFormat(fmt) { if (typeof fmt.transform !== 'function') { throw new Error([ 'No transform function found on format. Did you create a format instance?', 'const myFormat = format(formatFn);', 'const instance = myFormat();' ].join('\n')); } return true; } /* * function combine (info) * Returns a new instance of the combine Format which combines the specified * formats into a new format. This is similar to a pipe-chain in transform streams. * We choose to combine the prototypes this way because there is no back pressure in * an in-memory transform chain. */ module.exports = (...formats) => { const combinedFormat = format(cascade(formats)); const instance = combinedFormat(); instance.Format = combinedFormat.Format; return instance; }; // // Export the cascade method for use in cli and other // combined formats that should not be assumed to be // singletons. // module.exports.cascade = cascade;