{"maintainers":[{"name":"anonymous","email":"yo@contra.io"},{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"keywords":["path","homedir","tilde","replace","subsitute","user home","tilde"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"description":"Replace user home in a string with another string. Useful for tildifying a path.","readme":"<p align=\"center\">\n  <a href=\"https://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# replace-homedir\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nReplace user home in a string with another string. Useful for tildifying a path.\n\n## Usage\n\n```js\nvar replaceHomedir = require('replace-homedir');\n\nvar shortPath = replaceHomedir('/Users/phated/myProject', '~');\n// shortPath === '~/myProject'\n```\n\n## API\n\n### `replaceHomedir(path, replacement)`\n\nTakes a string `path` as the first argument and a string or function `replacement` as the second argument. If the `path` is absolute and begins with the User's homedir, the homedir portion of the path is replaced with `replacement` using String#replace.\n\nIf `path` is not a string, the function will throw.\n\n## License\n\nMIT\n\n<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/replace-homedir.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/replace-homedir\n[npm-image]: https://img.shields.io/npm/v/replace-homedir.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/replace-homedir/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/replace-homedir/dev?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/replace-homedir\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/replace-homedir/master.svgstyle=flat-square\n<!-- prettier-ignore-end -->\n","repository":{"type":"git","url":"git+https://github.com/gulpjs/replace-homedir.git"},"bugs":{"url":"https://github.com/gulpjs/replace-homedir/issues"},"license":"MIT","versions":{"0.1.0":{"name":"replace-homedir","version":"0.1.0","description":"Replace user home in a string with another string. Useful for tildifying a path.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/replace-homedir.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint . && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"homedir-polyfill":"^1.0.1","is-absolute":"^1.0.0","remove-trailing-separator":"^1.1.0"},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.3.5","jscs-preset-gulp":"^1.0.0","mocha":"^2.4.5"},"keywords":["path","homedir","tilde","replace","subsitute","user home","tilde"],"gitHead":"5b453f10c3bcd70c26b4cf874ae587efe1b0f45b","bugs":{"url":"https://github.com/gulpjs/replace-homedir/issues"},"homepage":"https://github.com/gulpjs/replace-homedir#readme","_id":"replace-homedir@0.1.0","_shasum":"65fb6e747ad9786b0d6982a53b2b02f7d605b583","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"anonymous","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"65fb6e747ad9786b0d6982a53b2b02f7d605b583","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/replace-homedir/-/replace-homedir-0.1.0.tgz","integrity":"sha512-pLrt/VOYq0K3j9dY8BVpSlpbR0lSXp41siFBw8xbVbt07IbIGIzZA0V50lvngFtLFixPYGd41sPkeUm6dYrkUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzMaRkgH9mJo9XqdDK73CLz2WJjRWfIITG8gHfnZ+e2AIhAMvzaxIXHlSdZxRRknYlyBpiqpj4bSiRKNTcsefmD/nO"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replace-homedir-0.1.0.tgz_1512602821173_0.17921618884429336"},"directories":{}},"1.0.0":{"name":"replace-homedir","version":"1.0.0","description":"Replace user home in a string with another string. Useful for tildifying a path.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/replace-homedir.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint . && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"homedir-polyfill":"^1.0.1","is-absolute":"^1.0.0","remove-trailing-separator":"^1.1.0"},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.3.5","jscs-preset-gulp":"^1.0.0","mocha":"^2.4.5"},"keywords":["path","homedir","tilde","replace","subsitute","user home","tilde"],"gitHead":"1a902568488cc2e615dd4eb9df651954979a6ad9","bugs":{"url":"https://github.com/gulpjs/replace-homedir/issues"},"homepage":"https://github.com/gulpjs/replace-homedir#readme","_id":"replace-homedir@1.0.0","_shasum":"e87f6d513b928dde808260c12be7fec6ff6e798c","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"anonymous","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"e87f6d513b928dde808260c12be7fec6ff6e798c","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/replace-homedir/-/replace-homedir-1.0.0.tgz","npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh25stCRA9TVsSAnZWagAATQsP/inQQt6+L2V5KsQzgTIm\nzTb1GFTBpaZYL5qPjbypsydeuKMtgmESu2xlbdr8aA/O7bwNTKQS1g0POgld\nsCxEHtepXJKU3xhgLuZ9r3AjbVtnYMVOwCnv79yj1dSknO4sFkOWUDQgJDna\nalrGtRKiA4ErgOdYVzMo7SLqdtTFGBHagZ9Betrq8h8Mr6KpjIz815VQ4XjX\niDHoSqHyQVTf/vXwVbo2cxihaqaUaJf6UdBl6UQwdjg4t3aL55WnGCHKzUJT\nNTzALZjzCxu7xJdplQJSAav4i3x0Rf/FSHYKfa1n2GPRFR14kbpzeF+kCUvr\nnJ+RvFkml7PQcfIRBh0lbGv/maT/Zuf/mCkdh5dA8Wa76aAKxsMKAeXj9Kwu\nIyFkXyXC20pMBLpKl3cC3oP1oQs/niy9aXaJOZuxxz+mPjNWqVFl4Vg97D1C\nqsAs4L0qz3FIgSG/xBc+JFnF1ZO5oJCBa6bpqE46d+f3MY8AyOFzVsV4UhmR\nY0L7mDsc+nLuPQSttSJLL7OZSvc72DOxRozvQ9mqXZl6CIXoGV5xfR+k/Vtq\nrD5OPh5bkowNV5iroYP7LbEBqxFJtE72I/TcuF1inH2/is2cgGfAsUy/3yz7\nM777taIB6QkhMo7aEZ+UDelur2svlBAlkQIBSWL8swEIJcFezBIFhz3B37F1\nmyck\r\n=yPIH\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-CHPV/GAglbIB1tnQgaiysb8H2yCy8WQ7lcEwQ/eT+kLj0QHV8LnJW0zpqpE7RSkrMSRoa+EBoag86clf7WAgSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHps/5Ixq5l6yEaJgGX/uwSMluaj+uDmco5AZq3dl3/6AiBfGrWiJzzVUCYCdwfJwmjrunnLGUlrtCKZ7ehym5ZdVQ=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replace-homedir-1.0.0.tgz_1512671454919_0.16078897938132286"},"directories":{}},"2.0.0":{"name":"replace-homedir","version":"2.0.0","description":"Replace user home in a string with another string. Useful for tildifying a path.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/replace-homedir.git"},"license":"MIT","engines":{"node":">= 10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.2","mocha":"^8.4.0","nyc":"^15.1.0","sinon":"^12.0.1"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["path","homedir","tilde","replace","subsitute","user home","tilde"],"gitHead":"1744ea97f283a41cbf4ee022d83f8d1eb15fc6a6","bugs":{"url":"https://github.com/gulpjs/replace-homedir/issues"},"homepage":"https://github.com/gulpjs/replace-homedir#readme","_id":"replace-homedir@2.0.0","_nodeVersion":"16.13.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-bgEuQQ/BHW0XkkJtawzrfzHFSN70f/3cNOiHa2QsYxqrjaC30X1k74FJ6xswVBP0sr0SpGIdVFuPwfrYziVeyw==","shasum":"245bd9c909275e0beee75eae85bb40780cd61903","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/replace-homedir/-/replace-homedir-2.0.0.tgz","fileCount":4,"unpackedSize":4662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9ykECRA9TVsSAnZWagAAnsYP/i4vR1LMq0V+rdwpW5sH\nc18UyIwIfqxkGA5xAPcImnAyR6bF3sVIKm+TDPbjsGhM9K6mgRbvhi6tIpAv\nxvdVXhH5gkqe1uYqxpBKSzEqmMs0cwkv3rgJIKcJWurlwWf6zAu9pjZFheXx\n05y11dpYA2J8VYpFUv54KwmnHVM0b0A+AfYZIuKdS1dzKcRZvmowIZuQmjvp\nVut2JkGIWxPcPufLAP70ojjz8YTzgDTM3DS4mJr75cPIFdXNs3ierYEabLw5\nR+NSAwGzv5Glwr8EVt+nevHTt+sKX9SwaDv4UpwGAoCltnph1cn2PVB4UDzf\nga+CpaTvpI8XHhRA5Ws4k74caIinm2xzmi7RDojLQsPOZ+MBJFe29WTPbjoR\nJDK7wwphRFq1Y93konmwNzZz5bfN1gc8Xr9AIlbm8yEvz1byXom6AYnb0B82\nE1XE7GEkjGcUyGuoLJ0lWaD9FlGrrkJMMD8Kn98dP1T9cxM6smnzo1tWeVHg\nxjQ8XdSvSsWCrzQkMOAwSmYm+1USKFWmUva6Flz9hCHa4vktMD7HHiHEjVr1\nkFOqYliuJT9D68Gf2iHv3iom24FiL+L/0cobo5H6/8G2QhHnK0F9iAJoAi1y\nvINK2WlnZdoE4BxcdB8qk0/QgASiJlx12t3p0ExRMr1+1csXnLkAMuDxiCyB\nbf7O\r\n=yqkh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUv2YtOhoG9REZjz1ldQznHUIMnfRqPHjkCM/yBKzaQwIgfTO03PYeqltDv0d7FlynjyNbht8wMxeA4/8w02J9eTM="}]},"_npmUser":{"name":"anonymous","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"yo@contra.io"},{"name":"anonymous","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/replace-homedir_2.0.0_1643587843623_0.31615751882754917"},"_hasShrinkwrap":false}},"name":"replace-homedir","time":{"modified":"2022-06-26T11:20:10.578Z","created":"2017-12-06T23:27:01.227Z","0.1.0":"2017-12-06T23:27:01.227Z","1.0.0":"2017-12-07T18:30:55.044Z","2.0.0":"2022-01-31T00:10:44.002Z"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"readmeFilename":"README.md","homepage":"https://github.com/gulpjs/replace-homedir#readme"}