{"name":"uriparser","version":"1.2.2","description":"Fastest uriparser, written in C","keywords":["uriparser","uri","parser","url"],"author":{"name":"Jakub Lekstan","email":"kuebzky@gmail.com"},"dependencies":{},"main":"./lib/bindings.js","repository":{"type":"git","url":"git://github.com/DreamLab/uriparser.git"},"scripts":{"preinstall":"node-waf clean || true; node-waf configure build"},"engines":{"node":">= 0.4.0"},"_npmUser":{"name":"kuebk","email":"kuebzky@gmail.com"},"_id":"uriparser@1.2.2","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"9e041aa7094617ef7d3718392a5d36e6f349db15","tarball":"http://registry-npm.ywwl.com/uriparser/download/uriparser-1.2.2.tgz","integrity":"sha512-+qF7jhfuHF0H8Vx6zHs0BumfyBNK9QjATpZsSW3QV48ZvOQJedmmWaxJyfi4L7/mPVcb7TXPNQyhaGUmQu57GA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDN5UvKj9OXdFPWObYJbyq/f5jtgTDV9KEtYY1cLiisSAiABRy1EgfbKszNGPgL5l7t+RdKCIedTIRtidSZUUNLtjw=="}],"size":215527,"noattachment":false,"key":"/uriparser/-/uriparser-1.2.2.tgz"},"maintainers":[{"name":"kuebk","email":"kuebzky@gmail.com"}],"directories":{},"readme":"[![Build Status](https://travis-ci.org/DreamLab/node-uriparser.svg?branch=master)](https://travis-ci.org/DreamLab/node-uriparser) [![npm version](https://badge.fury.io/js/uriparser.svg)](https://badge.fury.io/js/uriparser) [![downloads badge](http://img.shields.io/npm/dm/uriparser.svg)](https://www.npmjs.org/package/uriparser)\n\n\n# node-uriparser\n\n## About:\nBindings for non RFC strict NGINX based parser (https://github.com/DreamLab/ngx_url_parser).\n\n## How to build/install:\n```\ngit submodule update --init --recursive\nnode-gyp configure build\n```\nor\n```\nnpm install uriparser\n```\n\n## Requirements\nLibrary (uriparser) requires following packages to be installed:\n- automake\n- autoconf\n- libtool\n- pkg-config\n\n## API:\nThere is only one simple function: ````parse(url[, options);````.\n\nOptional argument ````options```` lets you tell the library what your interests are, for example you can tell it to only give you the host.\n\nAvailable options: ````PROTOCOL````, ````AUTH````, ````HOST````, ````PORT````, ````QUERY````, ````FRAGMENT````, ````PATH````, ````ALL````\n\n\n## Example:\n```js\n\nconst uriparser = require('uriparser');\n\nconst u = uriparser.parse('http://github.com');\nconsole.log(u);\n{ protocol: 'http:', host: 'github.com', path: '/' }\n\nconst q = uriparser.parse('https://github.com', uriparser.Uri.PROTOCOL);\nconsole.log(q);\n{ protocol: 'https:' }\n```\n\n## Benchmark:\nJust run ``./benchmark.js``\n\n## License:\n```\nCopyright (C) DreamLab Onet.pl Sp. z o. o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","publish_time":1333004687284,"_cnpm_publish_time":1333004687284,"dist-tags":{"latest":"2.5.1"}}