🐛 Update: Added support for the 'find' command in settings.local.json. Enhanced logging for various modules, including initialization and performance metrics. Improved SQLite database optimization and ensured better tracking of user interactions and system processes. 📚
This commit is contained in:
53
network-visualization/node_modules/path-dirname/readme.md
generated
vendored
Normal file
53
network-visualization/node_modules/path-dirname/readme.md
generated
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# 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
|
Reference in New Issue
Block a user