Skip to content

ashbeats/expand-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expand-Paths

CI

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

About

this project is used by @recent-win-cli.

Resources

Stars

Watchers

Forks

Packages

No packages published