Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.134.253.166
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
nice-try /
Delete
Unzip
Name
Size
Permission
Date
Action
src
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
CHANGELOG.md
457
B
-rw-r--r--
2018-08-25 19:01
LICENSE
1.05
KB
-rw-r--r--
2018-01-22 10:58
README.md
1.15
KB
-rw-r--r--
2018-08-25 19:00
package.json
1.52
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
# nice-try [](https://travis-ci.org/electerious/nice-try) [](https://ci.appveyor.com/project/electerious/nice-try) [](https://coveralls.io/github/electerious/nice-try?branch=master) [](https://david-dm.org/electerious/nice-try#info=dependencies) [](https://greenkeeper.io/) A function that tries to execute a function and discards any error that occurs. ## Install ``` npm install nice-try ``` ## Usage ```js const niceTry = require('nice-try') niceTry(() => JSON.parse('true')) // true niceTry(() => JSON.parse('truee')) // undefined niceTry() // undefined niceTry(true) // undefined ``` ## API ### Parameters - `fn` `{Function}` Function that might or might not throw an error. ### Returns - `{?*}` Return-value of the function when no error occurred.