### Install untildify Source: https://github.com/sindresorhus/untildify/blob/main/readme.md Install the package using npm. ```sh npm install untildify ``` -------------------------------- ### Expand '~' to home directory Source: https://github.com/sindresorhus/untildify/blob/main/readme.md Use the untildify function to convert a path starting with '~' to an absolute path based on the current user's home directory. ```js import untildify from 'untildify'; untildify('~/dev'); //=> '/Users/sindresorhus/dev' ``` -------------------------------- ### Expand '~username' to specific user's home directory Source: https://github.com/sindresorhus/untildify/blob/main/readme.md Convert a path starting with '~username' to an absolute path, provided the username matches the current user. Otherwise, the path is returned unchanged. ```js // Assuming the current user is 'sindresorhus' untildify('~sindresorhus/dev'); //=> '/Users/sindresorhus/dev' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.