GRAYBYTE WORDPRESS FILE MANAGER2154

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/node_modules/npm/node_modules/iferr/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/node_modules/npm/node_modules/iferr//iferr.js
// Delegates to `succ` on sucecss or to `fail` on error
// ex: Thing.load(123, iferr(cb, thing => ...))
const iferr = (fail, succ) => (err, ...a) => err ? fail(err) : succ(...a)

// Like iferr, but also catches errors thrown from `succ` and passes to `fail`
const tiferr = (fail, succ) => iferr(fail, (...a) => {
  try { succ(...a) }
  catch (err) { fail(err) }
})

// Delegate to the success function on success, throws the error otherwise
// ex: Thing.load(123, throwerr(thing => ...))
const throwerr = iferr.bind(null, err => { throw err })

// Prints errors when one is passed, or does nothing otherwise
// ex: Thing.load(123, printerr)
const printerr = iferr(err => console.error(err), () => {})

module.exports = exports = iferr
exports.iferr = iferr
exports.tiferr = tiferr
exports.throwerr = throwerr
exports.printerr = printerr

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:36:29
root / root
0755
LICENSE
1.051 KB
March 10 2021 14:36:38
root / root
0644
README.md
0.888 KB
March 10 2021 14:36:38
root / root
0644
iferr.js
0.817 KB
March 10 2021 14:36:38
root / root
0644
package.json
1.375 KB
March 10 2021 14:36:38
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF