npm.io
1.0.3 • Published 4 years ago

@io-arc/path-build

Licence
ISC
Version
1.0.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
6

@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'