{"id":18777265,"url":"https://github.com/iyowei/untildify","last_synced_at":"2025-08-01T08:14:41.444Z","repository":{"id":57119766,"uuid":"439277907","full_name":"iyowei/untildify","owner":"iyowei","description":"转换 '~/Development/OpenSource' 虚拟路径为绝对路径。","archived":false,"fork":false,"pushed_at":"2021-12-20T12:09:11.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T05:55:39.259Z","etag":null,"topics":["iyowei","path"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iyowei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-17T09:27:36.000Z","updated_at":"2021-12-20T12:09:03.000Z","dependencies_parsed_at":"2022-08-23T01:30:21.891Z","dependency_job_id":null,"html_url":"https://github.com/iyowei/untildify","commit_stats":null,"previous_names":["iyowei/resolve-virtual-root"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Funtildify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Funtildify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Funtildify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyowei%2Funtildify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyowei","download_url":"https://codeload.github.com/iyowei/untildify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239687435,"owners_count":19680732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iyowei","path"],"created_at":"2024-11-07T20:09:30.847Z","updated_at":"2025-02-19T15:44:39.954Z","avatar_url":"https://github.com/iyowei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @iyowei/untildify\n\n\u003e 转换 \"~/Development/OpenSource\" 波浪路径（虚拟路径）为绝对路径。\n\n## 使用\n\n### untildify(path)\n\n- `path`，{ String }，波浪路径\n\n```js\nimport { log } from \"console\";\nimport { untildify } from \"@iyowei/untildify\";\n\nlog(untildify(\"~/Development/OpenSource`\"));\n// 自动获取系统根目录，/Users/iyowei/Development/OpenSource\n```\n\n### untildifyWith(path, replacement)\n\n- `path`，{ String }，波浪路径\n- `replacement`，{ String }，指定替换路径\n\n```js\nimport { log } from \"console\";\nimport { untildifyWith } from \"@iyowei/untildify\";\n\nlog(log(untildifyWith('~/iyowei', '/dfafsdf/')););\n// /dfafsdf/iyowei\n```\n\n## 安装\n\n[![Node Version Badge][node version badge]][download node.js] ![esm][esm]\n\n```shell\n# Pnpm\npnpm add @iyowei/untildify\n\n# yarn\nyarn add @iyowei/untildify\n\n# npm\nnpm add @iyowei/untildify\n```\n\n## 参与贡献\n\n![PRs Welcome][prs welcome badge]\n\n[node version badge]: https://img.shields.io/badge/node.js-%3E%3D12.20.0-brightgreen?style=flat\u0026logo=Node.js\n[download node.js]: https://nodejs.org/en/download/\n[prs welcome badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat\n[esm]: https://img.shields.io/badge/ESM-brightgreen?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyowei%2Funtildify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyowei%2Funtildify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyowei%2Funtildify/lists"}