{"name":"upath2","version":"3.1.25","description":"A proxy to `path`, replacing `\\` with `/` for all results","keywords":["absolute","backslash","check","core","detect","dir","file","filepath","fix","forward","fp","fs","is","is-absolute","isabsolute","normalize","path","paths","sep","shim","slash","slashes","trailing","unix","urix","util","utils","win32","windows"],"homepage":"https://github.com/bluelovers/ws-iconv/tree/master/packages/upath2#readme","bugs":{"url":"https://github.com/bluelovers/ws-iconv/issues"},"repository":{"type":"git","url":"git+https://github.com/bluelovers/ws-iconv.git","directory":"packages/upath2"},"license":"ISC","author":{"name":"bluelovers"},"main":"index.js","directories":{"lib":"lib","test":"test"},"scripts":{"coverage":"yarn run test -- --coverage","test":"jest","test:jest":"jest --passWithNoTests","test:jest:coverage":"yarn run test:jest -- --coverage","test:jest:snapshot":"yarn run test:jest -- -u","test:snapshot":"yarn run test -- -u","test:tsd":"ynpx tsd","npm:publish":"npm publish","npm:publish:lerna":"lerna publish --yes --cd-version patch","preversion":"yarn run test","prepublish:lockfile":"ynpx sync-lockfile .","postpublish_":"git commit -m \"chore(release): publish\" .","ncu":"yarn-tool ncu -u","sort-package-json":"yarn-tool sort","tsc:showConfig":"ynpx get-current-tsconfig -p"},"dependencies":{"@lazy-node/types-path":"^1.0.3","@types/node":"*","path-is-network-drive":"^1.0.24","path-strip-sep":"^1.0.21","tslib":"^2.8.1"},"devDependencies":{"upath":"^3.0.7"},"gitHead":"6c258437d14e2d37d1fb08068fa60833ce6d389b","types":"./index.d.ts","_id":"upath2@3.1.25","_nodeVersion":"26.7.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-fPfgMpV+E3tcLMOdeJzQihp8D06q6Ro97gSdyMMNBoQg/w7LcLqf0+TiFvYdJzcxu02OMDM3nnTdl8EIFHfnBw==","shasum":"d5ac5934fca9e84b9cf0d8f90b7bc07799ea6c2c","tarball":"http://registry-npm.ywwl.com/upath2/download/upath2-3.1.25.tgz","fileCount":21,"unpackedSize":53971,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCKyceBb7+iFyPUA9YkpQXPT8KQAepU8jDwU9+AgVX8rwIgV20OTNnRJ1QG4namne5v9JcF9Z2tO1g607xw/FE2R3E="}],"size":13608,"noattachment":false,"key":"/upath2/-/upath2-3.1.25.tgz"},"_npmUser":{"name":"bluelovers","email":"codelovers@users.sourceforge.net"},"maintainers":[{"name":"bluelovers","email":"codelovers@users.sourceforge.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/upath2_3.1.25_1786743111460_0.3049175432832043"},"_hasShrinkwrap":false,"readme":"# upath2 - 跨平台路徑處理工具\n\n![](https://david-dm.org/bluelovers/node-upath2.svg)\n\n> 一個 `path` 的代理，將所有結果中的反斜線 (`\\`) 替換為正斜線 (`/`)，從而實現跨平台的路徑處理。\n\n## 主要功能\n\n- 跨平台路徑處理\n- 自動替換反斜線為正斜線\n- 完全相容於 Node.js path 模組\n- 支援 Windows 和 POSIX 平台\n- 內建網路磁碟機路徑處理\n\n## 安裝\n\n```bash\nnpm install upath2\n```\n\n## 快速開始\n\n## 使用方式\n\n### 匯入模組\n\n```ts\nimport * as upath from 'upath2';\n```\n\n### 基本使用\n\n```ts\n// 原來使用 path\nimport * as path from 'path';\n\n// 改用 upath2\nimport * as upath from 'upath2';\n```\n\nupath2 完全相容於 Node.js path 模組的 API，可以無縫替換。\n\n### 跨平台路徑處理\n\n```ts\n// Windows 路徑\nconst winPath = upath.join('C:\\\\Users\\\\User\\\\Documents', 'file.txt');\nconsole.log(winPath); // 'C:/Users/User/Documents/file.txt'\n\n// POSIX 路徑\nconst posixPath = upath.join('/home/user', 'documents', 'file.txt');\nconsole.log(posixPath); // '/home/user/documents/file.txt'\n```\n\n","publish_time":1786743111613,"_cnpm_publish_time":1786743111613,"dist-tags":{"latest":"3.1.25"}}