1.0.3 • Published 2 years ago

@io-arc/path-build v1.0.3

Weekly downloads
127
License
ISC
Repository
github
Last release
2 years ago

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