path-absolute
v1.0.1
Published
Resolves a path to an absolute path. Supports tilde
Downloads
319,293
Readme
path-absolute
Resolves a path to an absolute path. Supports tilde
Installation
npm i -S path-absolute
Usage
const pathAbsolute = require('path-absolute')
pathAbsolute('~/foo')
//> '/home/zkochan/foo'
pathAbsolute('/foo/bar')
//> '/foo/bar'
pathAbsolute('./foo/bar', '/home')
//> '/home/foo/bar'
API
pathAbsolute(path, [cwd]): string
Resolves a path to an absolute path