{"name":"vscode-uri","author":{"name":"Microsoft"},"version":"1.0.6","description":"The URI implementation that is used by VS Code and its extensions","main":"./lib/umd/index.js","typings":"./lib/umd/index","module":"./lib/esm/index.js","scripts":{"compile":"tsc -p ./src && tsc -p ./src/tsconfig.esm.json","prepublish":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/Microsoft/vscode-uri.git"},"license":"MIT","bugs":{"url":"https://github.com/Microsoft/vscode-uri/issues"},"homepage":"https://github.com/Microsoft/vscode-uri#readme","devDependencies":{"typescript":"^2.0.3"},"gitHead":"b1d3221579f97f28a839b6f996d76fc45e9964d8","_id":"vscode-uri@1.0.6","_npmVersion":"6.4.0","_nodeVersion":"8.9.1","_npmUser":{"name":"jrieken","email":"jrieken@microsoft.com"},"dist":{"integrity":"sha512-sLI2L0uGov3wKVb9EB+vIQBl9tVP90nqRvxSoJ35vI3NjxE8jfsE5DSOhWgSunHSZmKS4OCi2jrtfxK7uyp2ww==","shasum":"6b8f141b0bbc44ad7b07e94f82f168ac7608ad4d","tarball":"http://registry-npm.ywwl.com/vscode-uri/download/vscode-uri-1.0.6.tgz","fileCount":9,"unpackedSize":57857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdVWWCRA9TVsSAnZWagAAelsP/3kobhW/d44IYxLy4AN3\ne/TMRkMhYjhRCBxKsIbR0pHMc4lkNiaYud5D1iiS2aXxgEMeV9omQPeWKpKa\n4ThXvUqrof2hhJxHie0asUkiW2icepv0KVPcJvSCvVG27HQq/JwN/7l1SELC\nhRs+y3PhP2LGp2Dy6rl5kmScDiI36fi2yGhs5v1VN+y+ynqpS6ltYWO0O44i\nppI2kL+VjPVkT0cYrEqmicjxRYBLW4vsH/6gTI3PYRihD+jsgzU58I1kR/uN\nIXiIzIOUlLQniGIflvN1jh11pYg5H3SOjQFC2leocxLMCx8LEoWdV9iDAETX\nNQzy8ZMSaINs4xMl8qQuu9SsBXqDtSyyRfeeCEx4wGzpsTp9SDGVXRov9YO1\nUDIdBKpIYgLj9C8i79gYlWTi52iaP71PXpBrSd3WgLN4GhFl97hCu+Hikncd\njNnZUcrKt1Zqe1+DVRRSwWPDj30yc0NncHPBru45js1dHO19F7avIF3VDZFH\n7JRAjrlzMYrPi1LyM7ZD2RtX1/8oqHstqRW2WZfxdsf24UyO59mX1NoxBzAt\nMlgem3PV3aysZI+Xb0UGo90gXL7gFsaWcOdPo5um7HBKcfatM6iIpaKhiQ/+\ntl70N5Yc5nNTYxY6GhTlNRX8KRPmMEmXzgaMRWlIyOgSNxU0/er5Hc448V9S\nrQ8F\r\n=0OkY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHycM25+m8+yica2vJXhFKFXo/GwciVkqLp6v7PVCNhuAiAMLcFu2y9amrJrSNH2jbOC4CFBZWtwHnDnOz7lVoSNPQ=="}],"size":10185,"noattachment":false,"key":"/vscode-uri/-/vscode-uri-1.0.6.tgz"},"maintainers":[{"email":"martinae@microsoft.com","name":"aeschli"},{"email":"jrieken@microsoft.com","name":"jrieken"},{"email":"npmjs@microsoft.com","name":"microsoft"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-uri_1.0.6_1534416277894_0.5560834344124208"},"_hasShrinkwrap":false,"readme":"## vscode-uri\n\n[![Build Status](https://travis-ci.org/Microsoft/vscode-uri.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-uri)\n\nThis module contains the URI implementation that is used by VS Code and its extensions. \nIt has support for parsing a string into `scheme`, `authority`, `path`, `query`, and\n`fragment` URI components as defined in: http://tools.ietf.org/html/rfc3986\n\n```\n  foo://example.com:8042/over/there?name=ferret#nose\n  \\_/   \\______________/\\_________/ \\_________/ \\__/\n   |           |            |            |        |\nscheme     authority       path        query   fragment\n   |   _____________________|__\n  / \\ /                        \\\n  urn:example:animal:ferret:nose\n```\n\n## Usage\n\n```js\nimport { URI } from 'vscode-uri'\n\n// parse an URI from string\n\nlet uri = URI.parse('https://code.visualstudio.com/docs/extensions/overview#frag')\n\nassert.ok(uri.scheme === 'https');\nassert.ok(uri.authority === 'code.visualstudio.com');\nassert.ok(uri.path === '/docs/extensions/overview');\nassert.ok(uri.query === '');\nassert.ok(uri.fragment === 'frag');\nassert.ok(uri.toString() === 'https://code.visualstudio.com/docs/extensions/overview#frag')\n\n\n// create an URI from a fs path\n\nlet uri = URI.file('/users/me/c#-projects/');\n\nassert.ok(uri.scheme === 'file');\nassert.ok(uri.authority === '');\nassert.ok(uri.path === '/users/me/c#-projects/');\nassert.ok(uri.query === '');\nassert.ok(uri.fragment === '');\nassert.ok(uri.toString() === 'file:///users/me/c%23-projects/')\n```\n\n## Usage: Util\n\nThis module also exports a `Utils` package which is an extension, not part of `vscode.Uri`, and useful for path-math. There is: \n\n* `Utils.joinPath(URI, paths): URI`\n* `Utils.resolvePath(URI, paths): URI`\n* `Utils.dirname(URI): string`\n* `Utils.basename(URI): string`\n* `Utils.extname(URI): string`\n\nAll util use posix path-math as defined by the node.js path module. \n\n\n## Contributing\n\nThe source of this module is taken straight from the [vscode](https://github.com/microsoft/vscode)-sources and because of that issues and pull request should be created in that repository. Thanks and Happy Coding!\n\n## Code of Conduct\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n","publish_time":1534416278003,"_cnpm_publish_time":1534416278003,"dist-tags":{"latest":"3.2.0"}}