sindresorhus

untildify

Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev

by sindresorhus

JavaScript

JavaScript97.7%
TypeScript2.3%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
passy

I think this module (and probably the inverse version as well) should supper the syntax whereby is expanded to . It's important to note, though, that the home directory can vary and has to be looked up in the database. IssueHunt Summary sindresorhus has been rewarded. Backers (Total: $40.00) issuehunt ($40.00) Submitted pull Requests #25 Add function and component Tips Checkout the Issuehunt explorer to discover more funded issues. Need some help from other developers? Add your repositories on IssueHunt to raise funds.

passy · 1y ago
mgwidmann

To get this package to work with Typescript, the following must be set to true in the Without this, in the latest Typescript (5.1.0), it fails compilation with the message: For libraries like https://github.com/aws/jsii they require that be disabled so this library is unusable in that context. For example, the following does not work: Neither does:

mgwidmann · 3y ago
aminya

If you use untildify in a Node process started as a root, it expands to . Is there a way to expand to a user's home instead? One way I can think of is to use

aminya · 3y ago
Structured data for AI agents

Repository: sindresorhus/untildify. Description: Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev Stars: 148, Forks: 12. Primary language: JavaScript. Languages: JavaScript (97.7%), TypeScript (2.3%). License: MIT. Latest release: v6.0.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, silverwind, raphinesse, SamVerschueren, BendingBender, LinusU.