{"name":"vscode-uri","author":{"name":"Microsoft"},"version":"1.0.5","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":"a52018b38fd4e96947a398430898a00030397cdf","_id":"vscode-uri@1.0.5","_shasum":"3b899a8ef71c37f3054d79bdbdda31c7bf36f20d","_from":".","_npmVersion":"3.8.6","_nodeVersion":"8.9.1","_npmUser":{"name":"jrieken","email":"jrieken@microsoft.com"},"dist":{"shasum":"3b899a8ef71c37f3054d79bdbdda31c7bf36f20d","tarball":"http://registry-npm.ywwl.com/vscode-uri/download/vscode-uri-1.0.5.tgz","fileCount":11,"unpackedSize":48135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbF7ESCRA9TVsSAnZWagAA4E0P/RGK39avz/z+PGlfHq7+\nbWq7/mDbuegu0o9CdtiBHm1b7WfVilxynEav/KC9G/NZYZfC+8GKmxlm/yRE\nOvmGUB6OyU9TmaHMO/dSDr+PHmpIElvfsrumZR72cFvfdEylL1s9JjCThkOn\nIhZ4XtNxQx2esAk4Ug0tzzF8Spxcr7T3fAWXWV2n5z5QpJBV/qRtbNSQ9ixY\n99hgh40o2royn5OJ6vWWhdRvwdOYsB808rf/mIoLpzEG+8V6cC634JRm1TO+\nzGXE6COMglpwSLpsAZwvIqEWjYgiGyL+0dX+IGPngzv1m6rXVMMwlFGouKe0\nEu7SfIyOOD06jTVarQJRs9zpVeOaahgIyrxLGSyXg2jUo2x79FFckebUHLZ3\nAWDBzi5isKzCfiBONpJuabkGUYsVZQB1kyakqb96CT90iGG0Twgt2Uza3lwF\nGfcD6eNlKEq1T54RolGJ4nD5wNSTxQr1FGwDmuUGQyv22O3n+Ok5sgSlRD1N\naj5d1P4rEDNSwusBBiagivAhC/N1vt+7anZSGaWg7VutXGr4KAsNBGa2vSon\n+aPvJJWnygCyQkMIsiEkg8Jjxb+y1vl1i4fz6epupncQ6/aRVVutEVnVtJmg\nXw00tEX6sTESFEAxFi35hqvInDfS3jlURyPj1Epj5qv1JdbiCgFvlO+nKWZq\nihQz\r\n=+0Cb\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-hNZQfWfVbjjvI3sNCusqqjkZXOn7I4aDPQpiCCI/YxfYo4HHR9C4OdWZAdMRiCsegU7/Ei0LJnmZ7bU87FPKcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjXfCiVD+JKOau0B/Sp+sPlgmKc98Tfd7VBe84gLjn1QIgE9puwJiZYxfV9Qx4kDxlx4r4xxBwR4wbumPwGgplneY="}],"size":9351,"noattachment":false,"key":"/vscode-uri/-/vscode-uri-1.0.5.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.5_1528279313503_0.7015618772164711"},"_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":1528279313756,"_cnpm_publish_time":1528279313756,"dist-tags":{"latest":"3.2.0"}}