GitShow/sindresorhus/untildify
sindresorhus

untildify

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

by sindresorhus
Star on GitHubForknpm

JavaScript

149 stars12 forks7 contributorsQuiet · 9mo agoSince 2014v6.0.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus22 contributions
silverwind
silverwind7 contributions
raphinesse
raphinesse3 contributions
SamVerschueren
SamVerschueren2 contributions
BendingBender
BendingBender1 contribution
LinusU
LinusU1 contribution

Languages

View on GitHub →
JavaScript97.7%
TypeScript2.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
passy
Expand ~user syntaxClosedIssue

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 · 9mo ago
mgwidmann
Cannot import without `esModuleInterop` flag set to trueClosedIssue

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
Linux - user home instead of the root homeClosedIssue

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: 149, Forks: 12. Primary language: JavaScript. Languages: JavaScript (97.7%), TypeScript (2.3%). License: MIT. Latest release: v6.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, silverwind, raphinesse, SamVerschueren, BendingBender, LinusU.

·@ofershap

Replace github.com with gitshow.dev