{"_id":"urn-parser","_rev":"8-9813481d55184811ef2a3cefab385905","name":"urn-parser","description":"Module that has utilities for URN parsing","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"urn-parser","description":"Module that has utilities for URN parsing","version":"1.0.0","author":{"name":"Stuart Hudson","email":"goulash1971@gmail.com"},"keywords":["urn","parser"],"homepage":"https://github.com/goulash1971/urn-parser","contributors":[{"name":"Stuart Hudson","email":"goulash1971@gmail.com","url":"http://goulash1971.com/"}],"scripts":{"test":"make test"},"directories":{"lib":"lib/","test":"tests/"},"main":"./index","engines":{"node":"*"},"repository":{"type":"git","url":"git://github.com/goulash1971/urn-parser.git"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"dependencies":{},"devDependencies":{},"_id":"urn-parser@1.0.0","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"58faebf38b7578d25715dd6f97029748e92f975c","tarball":"https://registry.npmjs.org/urn-parser/-/urn-parser-1.0.0.tgz","integrity":"sha512-gm/VN8YMGEE4WbtNH8ZKQowV0kovMtUCHAJb8TZY4Ts2yQ4XvG8sko/d+6RA4a/jvkhhmMcY+0F2UWe8C+kZtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBDkFh0hJ5LksRPADW+3vHDRSUH2RenXDMSxjhpNhkBAiBoybhh631DzampuEx74C8/RXRqRllZ7N5fO0sn+54R7A=="}]}},"1.0.1":{"name":"urn-parser","description":"Module that has utilities for URN parsing","version":"1.0.1","author":{"name":"Stuart Hudson","email":"goulash1971@gmail.com"},"keywords":["urn","parser"],"homepage":"https://github.com/goulash1971/urn-parser","contributors":[{"name":"Stuart Hudson","email":"goulash1971@gmail.com","url":"http://goulash1971.com/"}],"scripts":{"test":"make test"},"directories":{"lib":"lib/","test":"tests/"},"main":"./index","engines":{"node":"*"},"repository":{"type":"git","url":"git://github.com/goulash1971/urn-parser.git"},"licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"6db2504f69bbf01731ce9f3dd9ea9707d80580a4","bugs":{"url":"https://github.com/goulash1971/urn-parser/issues"},"_id":"urn-parser@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"goulash1971","email":"goulash1971@gmail.com"},"dist":{"integrity":"sha512-QDpRiHVVNIV2eTf26flDeg0AjS9G8RtpMloGP1scEup79b+sAreH2qar96zhGpWENvXV5VFsvXympJZ4xF+LLw==","shasum":"c25a80d45a80ccc62072582f743b51aac346e046","tarball":"https://registry.npmjs.org/urn-parser/-/urn-parser-1.0.1.tgz","fileCount":8,"unpackedSize":8073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfwQVVwTZjFDgBLDw8sYtNX40OpVbUVQP3pMq3Hy27qAiAUEtIazfijsJ3mbyoKtcV+R1s52advbowkQKFNWBKTAw=="}]},"maintainers":[{"email":"goulash1971@gmail.com","name":"goulash1971"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/urn-parser_1.0.1_1520928945260_0.6849822024552452"},"_hasShrinkwrap":false}},"maintainers":[{"email":"goulash1971@gmail.com","name":"goulash1971"}],"time":{"modified":"2022-06-28T06:32:25.577Z","created":"2011-06-27T06:31:42.664Z","1.0.0":"2011-06-27T06:31:43.856Z","1.0.1":"2018-03-13T08:15:45.339Z"},"author":{"name":"Stuart Hudson","email":"goulash1971@gmail.com"},"repository":{"type":"git","url":"git://github.com/goulash1971/urn-parser.git"},"homepage":"https://github.com/goulash1971/urn-parser","keywords":["urn","parser"],"contributors":[{"name":"Stuart Hudson","email":"goulash1971@gmail.com","url":"http://goulash1971.com/"}],"readme":"urn-parser - Module for URN parsing\n==========\n\n### Overview\n\nURN-Parser is a module that provides functions for parsing URN (Uniform Resource Name) 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), but stripped down for the `urn` scheme.\n\nAlthough the URN-parser is a *good start*, for a more complete and fully compliant implemnentation \nI recommend you take a look at the [URI Type for javascript](https://github.com/webr3/URI) module which\nallows the `urn` to be inspected as an `uri`.\n\n#### What's an URN?\n\nThe best place to start if you want to know more about URNs is (of course) the wikipedia article on\n[Uniform Resource Name](http://en.wikipedia.org/wiki/Uniform_Resource_Name).\n\n### Installation\n\tnpm install urn-parser\n\n### Using the Module\nThe 'urn-parser' module is accessed in the standard way by calling `require(\"urn-parser\");` and once loaded \nyou have access to the following objects and functions.\n\n#### Class `urn-parser.Parser`\nThe `Parser` class is a wrapper object class that provides access to an object that can be \nused to parse `urn` 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(urnStr, strictMode)`\nParses an URN into components (optionally in *strict* mode)\n\n##### Method `Parser.complete(obj)`\nCreates a *complete* URN definition from its components\n\n##### Method `Parser.format(obj)`\nFormats an URN definition into a well-formed URN string\n\n#### Function `urn-parser.parse`\nThe `parse` function is a proxy to the `Parser.parse(urnStr, strictMode)` method on a singleton `Parser`\ninstance that is created for the module.\n\n#### Function `urn-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 `urn-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 basis of this module\n\n---\n### Author\nStuart Hudson\t\t \n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/goulash1971/urn-parser/issues"}}