appcd-path

Library for working with paths.

Usage no npm install needed!

<script type="module">
  import appcdPath from 'https://cdn.skypack.dev/appcd-path';
</script>

README

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'));

Legal

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.