{"name":"vscode-uri","author":{"name":"Microsoft"},"version":"2.1.2","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":"^3.6.4"},"gitHead":"7c094c53581a8b1b7631fbc5c4265dea2beaf303","_id":"vscode-uri@2.1.2","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-8TEXQxlldWAuIODdukIb+TR5s+9Ds40eSJrw+1iDDA9IFORPjMELarNQE3myz5XIkWWpdprmJjm1/SxMlWOC8A==","shasum":"c8d40de93eb57af31f3c715dd650e2ca2c096f1c","tarball":"http://registry-npm.ywwl.com/vscode-uri/download/vscode-uri-2.1.2.tgz","fileCount":9,"unpackedSize":65625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezSPWCRA9TVsSAnZWagAAzloP/j0u5c4fNJBW0mfYqyG8\natU5eT91YbZeWjcZb1yF2Jc6ZsuhtYVNlTPYc3jQVtMwHukv51KVuO9YHXQO\nByHVjf6KMeicxXyhSikgYcDVP/2IO281WaODI7EeRagxSqBeZYoxqaJ3yEOZ\nDftH+DhHCq+K7WgB9SwLDUc/GQSawpJbu4CMU4nyoJr+akC2bLBJrQDKGhgK\nFR9+hDC5UhdalvLwerSBL+ayd+mJtwo9v7Tl34t4Haa2J1KBW09M+AoYjLMF\n0N0XS9EAwEhZUI8l8I9D0CyHZcF76Ipof0c5YRDF/vrzgvGZVwmDeU4ho3zu\nC4o2uax+chq7LMfggueLPN8oKqK0W0IXLaGYIJc46TVX0Act27Ydszk4CL7w\nJWyZgMlyWGYvGfykJqpvUtltGSbvBQSdfSa/tXX3FFbwLa22lDqCaeVk7JpZ\nDz+PvlKA0+tPtD0vwdOp3JclU9GymVDcj3LMVRg0YjF6slX3yl4mijLBdh9Z\n0LpA8Z4ktlQi8IXbyJvsfrXsA/F4iatIFLU1fxOHA625xAeNfz7UfflD8bG+\nqZY20HIyu/wAuB1wafpUJRCdafJcVV9al5r9PtHy3qUTW3JB5TaIeJo4mGBw\nOHx3Zo9Fc2kCmNY3F2xE86Aj5hcMDqyoJsrEAtgAPCXfJXFYsDikA78z+Iee\ntoUK\r\n=4wdT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsZFdgHOv5w3HU9JCWO6g9VThIa9DIHZY6d/vPZANKDwIhAI5CmWBTpkLEmVl5avTBOpGEiP1oJeZMIz0PAeWUaqti"}],"size":11678,"noattachment":false,"key":"/vscode-uri/-/vscode-uri-2.1.2.tgz"},"maintainers":[{"email":"martinae@microsoft.com","name":"aeschli"},{"email":"jrieken@microsoft.com","name":"jrieken"},{"email":"npmjs@microsoft.com","name":"microsoft"}],"_npmUser":{"name":"jrieken","email":"jrieken@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-uri_2.1.2_1590502357661_0.03265937402256003"},"_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":1590502357837,"_cnpm_publish_time":1590502357837,"dist-tags":{"latest":"3.2.0"}}