{"_id":"@antora/expand-path-helper","_rev":"7-0113d47bbba085429da350e5307e1d3b","name":"@antora/expand-path-helper","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0-rc.1":{"name":"@antora/expand-path-helper","version":"1.0.0-rc.1","keywords":["path","absolute","relative","pwd","home"],"author":{"url":"https://opendevise.com","name":"OpenDevise Inc."},"license":"MPL-2.0","_id":"@antora/expand-path-helper@1.0.0-rc.1","maintainers":[{"name":"graphitefriction","email":"sarah@opendevise.com"},{"name":"mojavelinux","email":"dan.j.allen@gmail.com"}],"contributors":[{"name":"Dan Allen","email":"dan@opendevise.com"}],"homepage":"https://gitlab.com/antora/expand-path-helper#README","bugs":{"url":"https://gitlab.com/antora/expand-path-helper/issues"},"nyc":{"cache":true,"include":["lib/**/*.js"],"cacheDir":"node_modules/.cache/nyc","reporter":["lcov"]},"dist":{"shasum":"73c25fe84cf29043822d9cd56ebfb467524b50a0","tarball":"https://registry.npmjs.org/@antora/expand-path-helper/-/expand-path-helper-1.0.0-rc.1.tgz","fileCount":5,"integrity":"sha512-6vrzsNEBdQd81vO3/gkK2NYCgklScaL8USyEe5Y29kvOezWJ3dC5t2BBn0B7CdjSI0yFJH8UiveU+t24hIP0rw==","signatures":[{"sig":"MEUCIBfoL2PuT1y8181JHcbBVnWRuwx6o0wMhLtK2O41pKbjAiEA7z7SoXOfk2utwHo1A+RTo50rykPoEKhRaKhZdYbdtXk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21181},"main":"lib/index.js","files":["lib/"],"scripts":{"cov":"nyc _mocha test","lint":"eslint **/*.js","test":"_mocha test"},"_npmUser":{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},"repository":{"url":"git+https://gitlab.com/antora/expand-path-helper.git","type":"git"},"_npmVersion":"5.6.0","description":"A helper function to expand a path to an absolute path, first resolving leading shorthands such as tilde (~) and tilde plus (~+).","directories":{},"_nodeVersion":"8.9.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.5.0","chai":"^4.1.2","mocha":"^5.0.1","eslint":"^4.18.0","eslint-plugin-node":"^6.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/expand-path-helper_1.0.0-rc.1_1519298357907_0.2006047544075389","host":"s3://npm-registry-packages"}},"1.0.0-rc.2":{"name":"@antora/expand-path-helper","version":"1.0.0-rc.2","keywords":["path","absolute","relative","pwd","home"],"author":{"url":"https://opendevise.com","name":"OpenDevise Inc."},"license":"MPL-2.0","_id":"@antora/expand-path-helper@1.0.0-rc.2","maintainers":[{"name":"graphitefriction","email":"sarah@opendevise.com"},{"name":"mojavelinux","email":"dan.j.allen@gmail.com"}],"contributors":[{"name":"Dan Allen","email":"dan@opendevise.com"}],"homepage":"https://gitlab.com/antora/expand-path-helper#README","bugs":{"url":"https://gitlab.com/antora/expand-path-helper/issues"},"nyc":{"cache":true,"include":["lib/**/*.js"],"cacheDir":"node_modules/.cache/nyc","reporter":["lcov"]},"dist":{"shasum":"2499e60d41fa966494f0b8c5ae78f45ba22e0470","tarball":"https://registry.npmjs.org/@antora/expand-path-helper/-/expand-path-helper-1.0.0-rc.2.tgz","fileCount":5,"integrity":"sha512-i0lLkFcVhlSJxMRElSFi4XiLymiohrBsNvQoy1ZbSDL3nGHFJev8er5D9X7HJZ1jpW7PqDlbyzDavS9qsbRpYA==","signatures":[{"sig":"MEUCIEDwxmH37xPJso3c4yIL6VWL+qBJtewl6M1pL3hUGpbDAiEA2me+Wxs6XAHabqpv2YpsnIQ3PAWKZ7SWjOBWw4m5zP4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23239},"main":"lib/index.js","files":["lib/"],"scripts":{"cov":"nyc _mocha test","lint":"eslint **/*.js","test":"_mocha test"},"_npmUser":{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},"repository":{"url":"git+https://gitlab.com/antora/expand-path-helper.git","type":"git"},"_npmVersion":"5.6.0","description":"A helper function to expand a path to an absolute path, first resolving leading shorthands such as dot (.), tilde (~), and tilde plus (~+).","directories":{},"_nodeVersion":"8.9.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.5.0","chai":"^4.1.2","mocha":"^5.0.1","eslint":"^4.18.0","eslint-plugin-node":"^6.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/expand-path-helper_1.0.0-rc.2_1519337298992_0.2557183561529486","host":"s3://npm-registry-packages"}},"1.0.0-rc.3":{"name":"@antora/expand-path-helper","version":"1.0.0-rc.3","keywords":["path","absolute","relative","pwd","home"],"author":{"url":"https://opendevise.com","name":"OpenDevise Inc."},"license":"MPL-2.0","_id":"@antora/expand-path-helper@1.0.0-rc.3","maintainers":[{"name":"graphitefriction","email":"sarah@opendevise.com"},{"name":"mojavelinux","email":"dan.j.allen@gmail.com"}],"contributors":[{"name":"Dan Allen","email":"dan@opendevise.com"}],"homepage":"https://gitlab.com/antora/expand-path-helper#README","bugs":{"url":"https://gitlab.com/antora/expand-path-helper/issues"},"nyc":{"cache":true,"include":["lib/**/*.js"],"cacheDir":"node_modules/.cache/nyc","reporter":["lcov"]},"dist":{"shasum":"4881f4071dc9a6390717a5985d0f5752fb278ac4","tarball":"https://registry.npmjs.org/@antora/expand-path-helper/-/expand-path-helper-1.0.0-rc.3.tgz","fileCount":5,"integrity":"sha512-VYVvb3hRTPBDDxA3vucBABp8EEiUt1izlTq3ezhF5YQ03RX6uZtQ7ftPgeZN49wFPqHYQq77lYYNJs4lZzRGEQ==","signatures":[{"sig":"MEUCIEXW2PBlgBtsCrPkhVx1/bJpZ/+RmptfymhrdFMpQi7IAiEA6defr/V9ba6KtImGayMwKnqNZXC12FGh6cDO7hI0msA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23359},"main":"lib/index.js","files":["lib/"],"scripts":{"cov":"nyc _mocha test","lint":"eslint **/*.js","test":"_mocha test"},"_npmUser":{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},"repository":{"url":"git+https://gitlab.com/antora/expand-path-helper.git","type":"git"},"_npmVersion":"5.6.0","description":"A helper function to expand a path to an absolute path, first resolving leading shorthands such as dot (.), tilde (~), and tilde plus (~+).","directories":{},"_nodeVersion":"8.9.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.5.0","chai":"^4.1.2","mocha":"^5.0.1","eslint":"^4.18.0","eslint-plugin-node":"^6.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/expand-path-helper_1.0.0-rc.3_1519452471524_0.5616025492366372","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@antora/expand-path-helper","version":"1.0.0","keywords":["path","absolute","relative","pwd","home"],"author":{"url":"https://opendevise.com","name":"OpenDevise Inc."},"license":"MPL-2.0","_id":"@antora/expand-path-helper@1.0.0","maintainers":[{"name":"graphitefriction","email":"sarah@opendevise.com"},{"name":"mojavelinux","email":"dan.j.allen@gmail.com"}],"contributors":[{"name":"Dan Allen","email":"dan@opendevise.com"}],"homepage":"https://gitlab.com/antora/expand-path-helper#README","bugs":{"url":"https://gitlab.com/antora/expand-path-helper/issues"},"nyc":{"cache":true,"include":["lib/**/*.js"],"cacheDir":"node_modules/.cache/nyc","reporter":["lcov"]},"dist":{"shasum":"3bfd6938ab86d4709af8d869cbf3bb17b8fe8912","tarball":"https://registry.npmjs.org/@antora/expand-path-helper/-/expand-path-helper-1.0.0.tgz","fileCount":5,"integrity":"sha512-hg3y6M3OvRTb7jtLAnwwloYDxafbyKYttcf16kGCXvP7Wqosh7c+Ag+ltaZ7VSebpzpphO/umb/BXdpU7rxapw==","signatures":[{"sig":"MEYCIQCnZubgQDXvfbBzdd/gagINRkediGzeddil7k1cC1+EHwIhAKT2YpRrRj4jF0U+noTiGeuiF9wQ3Ypye4JvQcxs3ik4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24312},"main":"lib/index.js","files":["lib/"],"scripts":{"cov":"nyc _mocha test","lint":"eslint **/*.js","test":"_mocha test"},"_npmUser":{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},"repository":{"url":"git+https://gitlab.com/antora/expand-path-helper.git","type":"git"},"_npmVersion":"5.6.0","description":"A helper function to expand a path to an absolute path, including expanding the first segment if it matches a shorthand expression, dot (.), tilde (~), or tilde plus (~+).","directories":{},"_nodeVersion":"8.9.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.5.0","chai":"^4.1.2","mocha":"^5.0.1","eslint":"^4.18.0","eslint-plugin-node":"^6.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-promise":"^3.6.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/expand-path-helper_1.0.0_1519766698748_0.29347701866837594","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@antora/expand-path-helper","version":"2.0.0","keywords":["path","absolute","relative","cwd","pwd","home"],"author":{"url":"https://opendevise.com","name":"OpenDevise Inc."},"license":"MPL-2.0","_id":"@antora/expand-path-helper@2.0.0","maintainers":[{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"graphitefriction","email":"sarah@opendevise.com"}],"contributors":[{"name":"Dan Allen","email":"dan@opendevise.com"}],"homepage":"https://gitlab.com/antora/expand-path-helper#readme","bugs":{"url":"https://gitlab.com/antora/expand-path-helper/issues"},"nyc":{"cache":true,"include":["lib/**/*.js"],"cacheDir":"node_modules/.cache/nyc","reporter":["lcov"]},"dist":{"shasum":"2e7e8fe35ed97049a8f5f971a63a7a75886e646d","tarball":"https://registry.npmjs.org/@antora/expand-path-helper/-/expand-path-helper-2.0.0.tgz","fileCount":5,"integrity":"sha512-CSMBGC+tI21VS2kGW3PV7T2kQTM5eT3f2GTPVLttwaNYbNxDve08en/huzszHJfxo11CcEs26Ostr0F2c1QqeA==","signatures":[{"sig":"MEQCIENalHBL55VtWI51zru5BxAuGpvQ3gapIqLrZQLXuXFgAiAtvgk4mVxMt0bAeL5gV+i92Dwq2VAymdYHPP0pLBugDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8mxkCRA9TVsSAnZWagAAoSwQAKPgE05wJqqZ/DrIwfj2\nh7CxF3ktEbVckrpHuNIiUxe8Pu+mzPcJ0f9BRRa/JV1U5zg6+pF4VyS6k/YV\nt3Y0JfMmTFX4y9fyjf8hi+zaIEE16uSOBw0xlkOWa+UM7tZWRC+EYqjfGg3F\nqpl855wcdXAIWM5WLKFSBDVxbq00jAsnYwfkPGcqyJAqqGbj1qbU/BoAMaTA\n5csgqjCrRRchyk9kdV7TM4v7la6MQmxeSpRI+HPXzO9NLCu1rpTMtp+wRhys\nS144B8Aw2xNuuydL1Bh67l1JS1P5wAJcPGNQmtzAXm8oPBUioMIW9AKpsl9U\nFjCtNcenPHGUE5rHAsqsKJz+PKa2kPwJ3CTbSLjfsNJ5TgJ2/h0StXSPHL1W\nXa97Dv0/p/+3qjP1PeSN9ma8XDDs1Lhtock+lcXR1+DtNLUlp72uMGt+Y8Nw\nkH756oqlFav1GwlCSz32Cql8C/x/TOzxRXSc6v1qORj3HPQ6Ra+GD25eGR4s\ndlE/9jqzQbDGMTmQROq5BKWJq+IilYK7rTFWnMo3x2kzV2+2aIZVwoR0W2Lg\nvzmv90NDeZxl7TIbZ1GVMhxQ9Or7EbpLnKkUOJVeGeLD2q7ETAqxB9aKIUZE\nkcrG1HAqv7OANn3d7Jqn49JNm0MSVf4P7oazoJ+HBzkY45Rbe+DImkKwynfN\nZApd\r\n=4r5K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","engines":{"node":">=10.17.0"},"gitHead":"57324a8a6e52c7ddcccaca985e3ee055eb99acc7","scripts":{"cov":"nyc _mocha test","lint":"eslint \"{lib,npm,test}/**/*.js\"","test":"_mocha test","format":"prettier-eslint --write \"`pwd`/{lib,npm,test}/**/*.js\""},"_npmUser":{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},"repository":{"url":"git+https://gitlab.com/antora/expand-path-helper.git","type":"git"},"_npmVersion":"6.14.12","description":"Provides a helper function to expand a path to a normalized absolute path. This function also expands dot, tilde, and tilde plus when used as the first path segment.","directories":{},"_nodeVersion":"10.24.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"~15.1","chai":"~4.3","mocha":"~8.4","eslint":"~7.30","eslint-plugin-node":"~11.1","prettier-eslint-cli":"~5.0","eslint-plugin-import":"~2.23","eslint-plugin-promise":"~4.3","eslint-config-standard":"~16.0"},"_npmOperationalInternal":{"tmp":"tmp/expand-path-helper_2.0.0_1626500196188_0.4395568889137036","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@antora/expand-path-helper","version":"3.0.0","description":"Provides a helper function to expand a path to a normalized absolute path. This function also expands dot, tilde, and tilde plus when used as the first path segment.","license":"MPL-2.0","author":{"name":"OpenDevise Inc.","url":"https://opendevise.com"},"contributors":[{"name":"Dan Allen","email":"dan@opendevise.com"}],"repository":{"type":"git","url":"git+https://gitlab.com/antora/expand-path-helper.git"},"bugs":{"url":"https://gitlab.com/antora/expand-path-helper/issues"},"main":"lib/index.js","exports":{".":"./lib/index.js","./package.json":"./package.json"},"scripts":{"build":"npm test","postbuild":"npm run lint","coverage":"npx -y c8 npm test","coverage-ci":"npx -y nyc node -r ./test/coverage-config.js --test-reporter dot --test-reporter-destination stdout --test-reporter junit --test-reporter-destination reports/tests-xunit.xml --test test/*-test.js","format":"npx -y @biomejs/biome format --write","postformat":"node --disable-warning ExperimentalWarning npm/fix-formatting.js","lint":"npx -y @biomejs/biome lint","postpublish":"npx -y downdoc --postpublish","prepublishOnly":"npx -y downdoc --prepublish","test":"node --test test/*-test.js","pretidy":"npm run lint","tidy":"npm run format","version":"node npm/version.js"},"engines":{"node":">=16.0.0"},"keywords":["path","absolute","relative","cwd","pwd","home","cross-platform"],"c8":{"all":true,"include":["lib/**/*.js"],"exclude":[],"reporter":["lcov","text"],"reportDir":"reports"},"nyc":{"cache":true,"cacheDir":"node_modules/.cache/nyc","include":["lib/**/*.js"],"exclude":[],"reporter":["cobertura","lcov","text"],"reportDir":"reports"},"_id":"@antora/expand-path-helper@3.0.0","gitHead":"ef82027c4deff22b666437155a45a2037635fb47","homepage":"https://gitlab.com/antora/expand-path-helper#readme","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-7PdEIhk97v85/CSm3HynCsX14TR6oIVz1s233nNLsiWubE8tTnpPt4sNRJR+hpmIZ6Bx9c6QDp3XIoiyu/WYYA==","shasum":"5a38a35d04e5a60bfea686540155a1a922dc3d95","tarball":"https://registry.npmjs.org/@antora/expand-path-helper/-/expand-path-helper-3.0.0.tgz","fileCount":4,"unpackedSize":25719,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnhXptO7/72FVngPtrK8LGrBw0vzUMok9J+lH7/MWwEAiEA6YZIsTmhrM6ovPYmLr2eApbVxPv8P8C/6MJzaC/2kxU="}]},"_npmUser":{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},"directories":{},"maintainers":[{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"graphitefriction","email":"sarah@opendevise.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expand-path-helper_3.0.0_1732673927051_0.007023024844918568"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-22T11:19:17.854Z","modified":"2024-11-27T02:18:47.436Z","1.0.0-rc.1":"2018-02-22T11:19:18.000Z","1.0.0-rc.2":"2018-02-22T22:08:19.105Z","1.0.0-rc.3":"2018-02-24T06:07:51.590Z","1.0.0":"2018-02-27T21:24:58.818Z","2.0.0":"2021-07-17T05:36:36.343Z","3.0.0":"2024-11-27T02:18:47.213Z"},"bugs":{"url":"https://gitlab.com/antora/expand-path-helper/issues"},"author":{"name":"OpenDevise Inc.","url":"https://opendevise.com"},"license":"MPL-2.0","homepage":"https://gitlab.com/antora/expand-path-helper#readme","keywords":["path","absolute","relative","cwd","pwd","home","cross-platform"],"repository":{"type":"git","url":"git+https://gitlab.com/antora/expand-path-helper.git"},"description":"Provides a helper function to expand a path to a normalized absolute path. This function also expands dot, tilde, and tilde plus when used as the first path segment.","contributors":[{"name":"Dan Allen","email":"dan@opendevise.com"}],"maintainers":[{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"graphitefriction","email":"sarah@opendevise.com"}],"readme":"# @antora/expand-path-helper\n\nA Node.js module that provides a helper function to expand a path to a normalized absolute path.\nThis function also expands the following shorthand expressions when used as the first path segment: dot (`.`), tilde (`~`), or tilde plus (`~+`).\nThe expanded path is system dependent.\nDeveloped for use in Antora.\n\n## Install\n\n```console\n$ npm i @antora/expand-path-helper\n```\n\n## API\n\n```js\nfunction expandPath (path[, context])\n```\n\nExpands the specified path to a normalized absolute path.\nThe main purpose of this function is path expansion and normalization.\n\n* `path` &lt;string> - The path to expand.\nThis parameter is required.\nIf the path is already absolute, the path is normalized and returned.\n* `context` &lt;Object> - Named parameters that control how the path is resolved.\nAll named parameters are optional.\nThis parameter can also be specified as a String, in which case it’s used as the base context argument.\n**Default:** `{}`.\n  * `base` &lt;string> - The base directory from which to resolve a relative path instead of the working directory.\n  **Default:** `~+`\n  * `cwd` &lt;string> - The absolute directory to use as the working directory instead of the current working directory.\n  If not specified, the current working directory is used.\n  **Default:** `undefined`\n  * `dot` &lt;string> - The value to use to replace a leading dot (`.`) segment.\n  If the value is `.`, the value of the `base` context argument is used instead.\n  **Default:** `.`\n\nIf the first segment of the path argument, the base context argument, or the dot context argument is `~` or `~+`, that value is expanded to the user’s home directory or current working directory, respectively.\nIf the first segment of the path argument is `.`, that value is replaced with the dot context argument after the dot context argument is expanded.\n\n## Usage\n\nThe output of `expandPath` depends on the system on which it is run (specifically on the `path.sep` value).\n\n### *nix\n\n```js\nconst expandPath = require('@antora/expand-path-helper')\n\nexpandPath('/absolute/path')\n//=> /absolute/path\n\nexpandPath('/absolute/./path/..')\n//=> /absolute\n\nexpandPath('foo/bar')\n//=> $PWD/foo/bar\n\nexpandPath('./foo/bar')\n//=> $PWD/foo/bar\n\nexpandPath('~/foo/bar')\n//=> $HOME/foo/bar\n\nexpandPath('~+/foo/bar')\n//=> $PWD/foo/bar\n\nexpandPath('~+/foo/bar', { cwd: '/working/dir' })\n//=> /working/dir/foo/bar\n\nexpandPath('foo/bar', '/base/dir')\n//=> /base/dir/foo/bar\n\nexpandPath('foo/bar', { base: '/base/dir' })\n//=> /base/dir/foo/bar\n\nexpandPath('./foo/bar', { base: '/base/dir' })\n//=> /base/dir/foo/bar\n\nexpandPath('./foo/bar', { dot: '/dot/dir' })\n//=> /dot/dir/foo/bar\n```\n\n### Windows\n\n```js\nconst expandPath = require('@antora/expand-path-helper')\n\nexpandPath('C:\\\\absolute\\\\path')\n//=> C:\\absolute\\path\n\nexpandPath('C:/absolute/path')\n//=> C:\\absolute\\path\n\nexpandPath('C:\\\\absolute\\\\.\\\\path\\\\..')\n//=> C:\\absolute\n\nexpandPath('foo\\\\bar')\n//=> C:\\current\\directory\\foo\\bar\n\nexpandPath('.\\\\foo\\\\bar')\n//=> C:\\current\\directory\\foo\\bar\n\nexpandPath('~\\\\foo\\\\bar')\n//=> C:\\Users\\user\\foo\\bar\n\nexpandPath('~+\\\\foo\\\\bar')\n//=> C:\\current\\directory\\foo\\bar\n\nexpandPath('~+\\\\foo\\\\bar', { cwd: 'C:\\\\working\\\\dir' })\n//=> C:\\working\\dir\\foo\\bar\n\nexpandPath('foo\\\\bar', 'C:\\\\base\\\\dir')\n//=> C:\\base\\dir\\foo\\bar\n\nexpandPath('foo\\\\bar', { base: 'C:\\\\base\\\\dir' })\n//=> C:\\base\\dir\\foo\\bar\n\nexpandPath('.\\\\foo\\\\bar', { base: 'C:\\\\base\\\\dir' })\n//=> C:\\base\\dir\\foo\\bar\n\nexpandPath('.\\\\foo\\\\bar', { dot: 'C:\\\\dot\\\\dir' })\n//=> C:\\dot\\dir\\foo\\bar\n```\n\nOn Windows, the input path may use forward slashes, but the expanded path will always have backslashes.\n\n## Copyright and License\n\nCopyright (C) 2018-present by OpenDevise Inc. and the individual contributors to Antora.\n\nUse of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).\n","readmeFilename":"README.md"}