path module
Functions for working with file paths and URLs.
Function | Return type | Brief description |
|---|---|---|
| Determines if a given path is an absolute path. | |
| Determines if a given path is a relative path. | |
| Validates if a string is a properly formatted domain name. | |
| Joins all given path segments together using the platform-specific separator. | |
|
| Validates if a path is not absolute. |
|
| Validates if a path is not relative. |
|
| Validates if a value is not a valid domain name. |
| Normalizes a path by resolving | |
Breaks down a path into an object containing its constituent parts (root, dir, base, ext, name). | ||
|
| Ensures a path is absolute, throwing otherwise. |
|
| Ensures a path is relative, throwing otherwise. |
| Ensures a value is a valid domain name, throwing otherwise. |
This documentation was generated with AI (Claude) from the library's source code.