{"name":"universal-url","description":"WHATWG URL for Node & Browser.","version":"1.0.0","license":"MIT","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"https://www.svachon.com/"},"repository":{"type":"git","url":"git+https://github.com/stevenvachon/universal-url.git"},"browser":"browser.js","dependencies":{"hasurl":"^1.0.0","whatwg-url":"^6.0.1"},"devDependencies":{"babel-preset-es2015":"^6.24.1","babelify":"^7.3.0","browserify":"^14.4.0","chai":"^4.0.2","mocha":"^3.4.2","nightmare":"^2.10.0","rimraf":"^2.6.1","xvfb-maybe":"~0.2.1"},"engines":{"node":">= 6"},"scripts":{"posttest":"rimraf browser-built.js","pretest":"browserify browser.js --global-transform [ babelify --presets [ es2015 ] ] --standalone=UniversalURL --outfile=browser-built.js","test":"xvfb-maybe mocha test --check-leaks --globals=URL,URLSearchParams --bail"},"files":["browser.js","index.js"],"keywords":["uri","url","whatwg"],"gitHead":"6f216355a57bee24eeb94c4bc56d455c370b384a","bugs":{"url":"https://github.com/stevenvachon/universal-url/issues"},"homepage":"https://github.com/stevenvachon/universal-url#readme","_id":"universal-url@1.0.0","_npmVersion":"5.0.4","_nodeVersion":"8.1.2","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"integrity":"sha512-g6JsuocfFwAlb5i+20b5JsNZ2GjNxcZ2GN4w/pJDp5el5CLNU0Wl4iaq00E/+GopjhtPlE6EhE/U508i+5wyBw==","shasum":"3375a3f9166f38984e089d12ede58006f088a3d1","tarball":"http://registry-npm.ywwl.com/universal-url/download/universal-url-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhXgXwKhL0Flt7CrvDxGfCrxJ16cgyjhP9jZdlDZIK9AiAU5d7z64Rs0Z7LErL6RRbJnvG3AgMysvTg5SJ7qq4E0g=="}],"size":2306,"noattachment":false,"key":"/universal-url/-/universal-url-1.0.0.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/universal-url-1.0.0.tgz_1498748051223_0.2178802154958248"},"directories":{},"readme":"# universal-url [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Monitor][greenkeeper-image]][greenkeeper-url]\n\n> WHATWG [`URL`](https://developer.mozilla.org/en/docs/Web/API/URL) for Node & Browser.\n\n\n* For Node.js versions `>= 8`, the native implementation will be used.\n* For Node.js versions `< 8`, a [shim](https://npmjs.com/whatwg-url) will be used.\n* For web browsers without a native implementation, the same shim will be used.\n\n\n## Installation\n\n[Node.js](http://nodejs.org/) `>= 6` is required. To install, type this at the command line:\n```shell\nnpm install universal-url\n```\n\n\n## Usage\n\n```js\nconst {URL, URLSearchParams} = require('universal-url');\n\nconst url = new URL('http://domain/');\nconst params = new URLSearchParams('?param=value');\n```\n\nGlobal shim:\n```js\nrequire('universal-url').shim();\n\nconst url = new URL('http://domain/');\nconst params = new URLSearchParams('?param=value');\n```\n\n\n## Browserify/etc\n\nThe bundled file size of this library can be large for a web browser. If this is a problem, try using [universal-url-lite](https://npmjs.com/universal-url-lite) in your build as an alias for this module.\n\n\n[npm-image]: https://img.shields.io/npm/v/universal-url.svg\n[npm-url]: https://npmjs.org/package/universal-url\n[travis-image]: https://img.shields.io/travis/stevenvachon/universal-url.svg\n[travis-url]: https://travis-ci.org/stevenvachon/universal-url\n[greenkeeper-image]: https://badges.greenkeeper.io/stevenvachon/universal-url.svg\n[greenkeeper-url]: https://greenkeeper.io/\n","publish_time":1498748052198,"_cnpm_publish_time":1498748052198,"dist-tags":{"latest":"2.0.0"}}