0.0.3 • Published 4 years ago

@recent-cli/expand-paths v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Expand-Paths

Install

$ yarn add @recent-cli/expand-paths
$ npm -i @recent-cli/expand-paths

Usage

const {expandUserPath, expandAppData} = require('@recent-cli/expand-paths')

// To resolve a path in the user's home folder

console.log(
    expand.expandUserPath(".bash_profile") 
);

console.log(
    expand.expandUserPath(".bash_profile", true) //# ensures path exists
);

// To resolve the user's AppData folder (Windows only. Returns null otherwise)
console.log(
    expand.expandAppData(".bash_profile", true) //# ensures path exists
);

Created for: @recent-cli tool