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.129.71.225
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 /
p-finally /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
302
B
-rw-r--r--
2016-09-15 09:28
license
1.09
KB
-rw-r--r--
2014-04-06 15:43
package.json
1.59
KB
-rw-r--r--
2021-02-04 21:24
readme.md
949
B
-rw-r--r--
2016-10-20 10:57
Save
Rename
# p-finally [](https://travis-ci.org/sindresorhus/p-finally) > [`Promise#finally()`](https://github.com/tc39/proposal-promise-finally) [ponyfill](https://ponyfill.com) - Invoked when the promise is settled regardless of outcome Useful for cleanup. ## Install ``` $ npm install --save p-finally ``` ## Usage ```js const pFinally = require('p-finally'); const dir = createTempDir(); pFinally(write(dir), () => cleanup(dir)); ``` ## API ### pFinally(promise, [onFinally]) Returns a `Promise`. #### onFinally Type: `Function` Note: Throwing or returning a rejected promise will reject `promise` with the rejection reason. ## Related - [p-try](https://github.com/sindresorhus/p-try) - `Promise#try()` ponyfill - Starts a promise chain - [More…](https://github.com/sindresorhus/promise-fun) ## License MIT © [Sindre Sorhus](https://sindresorhus.com)