npm.io
2.0.8 • Published 5 years ago

appcd-path

Licence
Apache-2.0
Version
2.0.8
Deps
1
Size
12 kB
Vulns
0
Weekly
0
Stars
7

appcd-path

Library for working with paths.

Visit https://github.com/appcelerator/appc-daemon for more information.

Report issues to GitHub issues. Official issue tracker in JIRA.

Installation

npm i appcd-path

Usage

import { expandPath } from 'appcd-path';

// replace ~ with the user's home path and join any additional segments
console.log(expandPath('~/foo', 'bar'));
import { real } from 'appcd-path';

// resolves symlinks to real path, even if symlink is broken
console.log(real('/some/path'));

This project is open source under the Apache Public License v2 and is developed by Axway, Inc and the community. Please read the LICENSE file included in this distribution for more information.