{"name":"vscode-uri","author":{"name":"Microsoft"},"version":"0.0.7","description":"The URI implementation that is used by VS Code and its extensions","main":"lib/index.js","typings":"./lib/index","scripts":{"compile":"tsc && tsc -p spec/tsconfig.json","test":"npm run compile && mocha --ui tdd spec/","prepublish":"npm run test"},"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":{"mocha":"^2.5.3","typescript":"1.8.10"},"gitHead":"5e9adde6292e4258fbc3e13e9419632461b72a7d","_id":"vscode-uri@0.0.7","_shasum":"43e18cdd2ab2377f08c77554c3575786f3e66138","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jrieken","email":"jrieken@microsoft.com"},"dist":{"shasum":"43e18cdd2ab2377f08c77554c3575786f3e66138","tarball":"http://registry-npm.ywwl.com/vscode-uri/download/vscode-uri-0.0.7.tgz","integrity":"sha512-jy6u58uu0lyLKF8byiwex6qzxLMmI/mjF/7eOWX3tI+DlxmkplcsTKh6FZNkcpISw/A+MlWue5J1GRXqeD5IFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICA3vWScflIjJFjGxxijWiRnp2aw6rOhCNApTxRgQkIlAiEA+Hj6P+xFQfUH5IONmtmLSQFik+KZTH+mpLWiMBkyyJc="}],"size":5863,"noattachment":false,"key":"/vscode-uri/-/vscode-uri-0.0.7.tgz"},"maintainers":[{"name":"aeschli","email":"martinae@microsoft.com"},{"name":"jrieken","email":"jrieken@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/vscode-uri-0.0.7.tgz_1473761084273_0.1066384690348059"},"directories":{},"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":1473761086285,"_cnpm_publish_time":1473761086285,"dist-tags":{"latest":"3.2.0"}}