{"_id":"nd-uri-parser","_rev":"4-48a1ebc589418c195059cc28e712cfb1","time":{"1.0.0":"2018-03-05T06:29:55.869Z","created":"2018-03-06T06:45:59.982Z","1.0.1":"2018-03-06T06:46:00.129Z","modified":"2022-05-10T11:11:16.538Z"},"name":"nd-uri-parser","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"nd-uri-parser","description":"Module that has utilities for URI parsing","version":"1.0.1","author":{"name":"Chen Zerong","email":"czRadiance@gmail.com"},"keywords":["uri","parser"],"homepage":"https://github.com/czRadiance/nd-uri-parser","contributors":[{"name":"Stuart Hudson","email":"goulash1971@gmail.com","url":"http://goulash1971.com/"},{"name":"Chen Zerong","email":"czRadiance@gmail.com"}],"scripts":{"test":"make test"},"directories":{"lib":"lib/","test":"tests/"},"main":"./index","engines":{"node":"*"},"repository":{"type":"git","url":"git+https://github.com/czRadiance/nd-uri-parser.git"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"ed27afb5b1d439effab1934ab07fe7a7410528c7","bugs":{"url":"https://github.com/czRadiance/nd-uri-parser/issues"},"_id":"nd-uri-parser@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"czradiance","email":"czRadiance@gmail.com"},"dist":{"integrity":"sha512-qQmwfDKwZpTQTj6NZ5gTcn0gWE9aYs09zFVTkh0aajzk5+7g7Hr80El90n317P7nsSfP5ZhaWZk8bT8FJ0YvQg==","shasum":"f68d749869bc5289118c0cc4ea19810666c47b7d","tarball":"https://registry.npmjs.org/nd-uri-parser/-/nd-uri-parser-1.0.1.tgz","fileCount":8,"unpackedSize":10487,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCi6NKZWGxxfy4XesZf9WuEoqG7+/dNwknSpgLXleIp5AIhAPHH3abiP7qa0Y4N/fj0LQ4jZW7xUwq6Flz5k80hRcK0"}]},"maintainers":[{"name":"czradiance","email":"czRadiance@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nd-uri-parser_1.0.1_1520318759983_0.7380463258876477"},"_hasShrinkwrap":false}},"maintainers":[{"name":"czradiance","email":"czRadiance@gmail.com"}],"description":"Module that has utilities for URI parsing","homepage":"https://github.com/czRadiance/nd-uri-parser","keywords":["uri","parser"],"repository":{"type":"git","url":"git+https://github.com/czRadiance/nd-uri-parser.git"},"contributors":[{"name":"Stuart Hudson","email":"goulash1971@gmail.com","url":"http://goulash1971.com/"},{"name":"Chen Zerong","email":"czRadiance@gmail.com"}],"author":{"name":"Chen Zerong","email":"czRadiance@gmail.com"},"bugs":{"url":"https://github.com/czRadiance/nd-uri-parser/issues"},"readme":"nd-uri-parser - Module for URI parsing\n==========\n\n### Why edit it?\nWhen we using this module, we found that continuous assignment will cause a lot of problems in strict mode,\nso we edit the 'index.js' file in lib to fix it.\n\n### Overview\n\nURI-Parser is a module that provides functions for parsing URI (Uniform Resource Identifier) that is loosly \nbased upon the standard `url` module within `node`.  Parsing is derived from the **excellent** `parseUri` \nfunction by [Steven Levithan](http://stevenlevithan.com).\n\nAlthough the URI-parser takes care of most URI specifications it is **not fully compliant with the RFC-3986 \nspecification**. For a more complete and fully compliant implemnentation I recommend you take a look at \nthe [URI Type for javascript](https://github.com/webr3/URI) module.\n\n#### What's an URI?\n\nThe best place to start if you want to know more about URIs is (of course) the wikipedia article on\n[Uniform Resource Identifiers](http://en.wikipedia.org/wiki/Uniform_Resource_Identifier).\n\nOnce you have been there, and are suitably confused, go take a look at Steve Leviathan's test page for \nhis [`parseUri`](http://stevenlevithan.com/demo/parseuri/js/) function that used is within this module to \ndo all of the hard work.\n\n### Installation\n\tnpm install nd-uri-parser\n\n### Using the Module\nThe 'uri-parser' module is accessed in the standard way by calling `require(\"uri-parser\");` and once loaded \nyou have access to the following objects and functions.\n\n#### Class `uri-parser.Parser`\nThe `Parser` class is a wrapper object class that provides access to an object that can be \nused to parse `uri` instances.\n\nThis class has the following interface:\n\n##### Constructor `Parser(options)`\nCreates a new instance with the specified options\n\n##### Method `Parser.parse(uriStr, strictMode)`\nParses an URI into components (optionally in *strict* mode)\n\n##### Method `Parser.complete(obj)`\nCreates a *complete* URI definition from its components\n\n##### Method `Parser.format(obj)`\nFormats an URI definition into a well-formed URI string\n\n#### Function `uri-parser.parse`\nThe `parse` function is a proxy to the `Parser.parse(uriStr, strictMode)` method on a singleton `Parser`\ninstance that is created for the module.\n\n#### Function `uri-parser.complete`\nThe `complete` function is a proxy to the `Parser.complete(obj)` method on a singleton `Parser`\ninstance that is created for the module.\n\n#### Function `uri-parser.format`\nThe `format` function is a proxy to the `Parser.format(obj)` method on a singleton `Parser`\ninstance that is created for the module.\n\n### Contributors\n- [Stuart Hudson](https://github.com/goulash1971)\n\n### License\nMIT License\n\n### Acknowledgements\n- [Steven Levithan](http://stevenlevithan.com) for the `parseUri` function that is the core of this module\n\n---\n### Author\nStuart Hudson\t\t \n\n","readmeFilename":"README.md"}