@io-arc/path-build
Convert an array to a relative or absolute path.
Usage#
index.ts
Methods#
No New instance.
This class is static function.
PathBuild.relative(dir)#
Return: string
Create path join.
Near as path.join in node.js.
Parameters
| params | type | default | description |
|---|---|---|---|
dir | string[] | - | Array of directory names to be converted |
PathBuild.absolute(dir)#
Return: string
Create an absolute path from root.
Near as path.resolve in node.js.
Parameters
| params | type | default | description |
|---|---|---|---|
dir | string[] | - | Array of directory names to be converted |