1.0.1 • Published 10 months ago

untildify-user v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

Untildify a path for the current user even if it is root

Install

npm install --save untildify-user

Usage

userHomeDir (function)

returns: string

untildifyUser (function)

Replaces a tilde with the user's home directory

Parameters:

  • path (string) - The path to untildify

returns: string

UntildifyUser("~/foo") // /home/user/foo

🤝 Contributing

You can sponsor my work here:

https://github.com/sponsors/aminya

Pull requests, issues and feature requests are welcome. See the Contributing guide.

1.0.1

10 months ago

1.0.0

11 months ago