Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev
by sindresorhusJavaScript
Last 12 weeks · 0 commits
4 of 6 standards met
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.
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:
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.