@io-arc/path-build
v1.0.3
Published
Path create to relative or absolute
Downloads
10
Readme
@io-arc/path-build
Path create to relative or absolute.
See the documents.
Install
$ npm i @io-arc/path-build
Usage
import PathBuild from '@io-arc/path-build'
const dist = PathBuild.relative(['abc', 'def'])
// -> 'abc/def'
const ab = PathBuild.absolute(['abc', 'def'])
// -> '/Users/xxxx/xxxx/abc/def'