{"name":"untildify","version":"6.0.0","description":"Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/untildify.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && NODE_OPTIONS=--loader=esmock ava && tsd"},"keywords":["tilde","expansion","expand","untildify","path","home","directory","user","shell","bash"],"devDependencies":{"ava":"^6.4.1","esmock":"^2.7.2","tsd":"^0.33.0","xo":"^1.2.2"},"_id":"untildify@6.0.0","gitHead":"ca6416bcad1135c4c039d831cf7c1ce22b337896","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/untildify/issues"},"homepage":"https://github.com/sindresorhus/untildify#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-sA2YTBvW2F463GvSbiZtso+dpuQV+B7xX9saX30SGrR5Fyx4AUcvA/zN+ShAkABKUKVyDaHECsJrHv5ToTuHsQ==","shasum":"95d532bb8a7f555613deb11c1379d1b7cf5a1755","tarball":"http://registry-npm.ywwl.com/untildify/download/untildify-6.0.0.tgz","fileCount":5,"unpackedSize":4015,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCnmBCC0Y4KptvC4cVmxP96yNGTFTFADVhmW/PZ/PpzggIgAeCO59p0dlkZAOvRo6gh1FCwL07vkLpqhBFS/tHSOoQ="}],"size":1966,"noattachment":false,"key":"/untildify/-/untildify-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/untildify_6.0.0_1757445859131_0.1495058088212724"},"_hasShrinkwrap":false,"readme":"# untildify\n\n> Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`\n\n## Install\n\n```sh\nnpm install untildify\n```\n\n## Usage\n\n```js\nimport untildify from 'untildify';\n\nuntildify('~/dev');\n//=> '/Users/sindresorhus/dev'\n\n// Assuming the current user is 'sindresorhus'\nuntildify('~sindresorhus/dev');\n//=> '/Users/sindresorhus/dev'\n```\n\n## Features\n\n- Expands `~` to the current user's home directory\n- Expands `~username` to the home directory when username matches the current user\n- Returns path unchanged if username doesn't match the current user\n\n## Related\n\nSee [tildify](https://github.com/sindresorhus/tildify) for the inverse.\n","publish_time":1757445859322,"_cnpm_publish_time":1757445859322,"dist-tags":{"latest":"6.0.0"}}