🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

untildify

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
u

untildify

Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`

5.0.0
latest
100

Supply Chain Security

100

Vulnerability

62

Quality

76

Maintenance

100

License

Version published
Weekly downloads
13M
1.45%
Maintainers
1
Weekly downloads
 
Created
Issues
1

What is untildify?

The untildify npm package is used to convert a tilde path to an absolute path. It expands the tilde (~) in file paths to the user's home directory, which is particularly useful in Node.js applications where file paths are often specified in configuration files or command line arguments.

What are untildify's main functionalities?

Path Expansion

This feature allows the expansion of the tilde (~) symbol to the user's home directory in a file path. It's useful for scripts and applications that need to access user-specific directories without hardcoding absolute paths.

const untildify = require('untildify');
console.log(untildify('~/Desktop')); // Outputs absolute path to the Desktop directory

Other packages similar to untildify

FAQs

Package last updated on 11 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts