{"name":"universal-url","description":"WHATWG URL for Node & Browser.","version":"1.0.0-alpha","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-alpha","whatwg-url":"^4.7.0"},"devDependencies":{"babel-preset-es2015":"^6.24.1","babelify":"^7.3.0","browserify":"^14.3.0","chai":"^3.5.0","mocha":"^3.2.0","nightmare":"^2.10.0","rimraf":"^2.6.1","thenify":"^3.2.1","xvfb-maybe":"~0.1.3"},"engines":{"node":">= 4"},"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 --reporter=spec --check-leaks --globals=URL,URLSearchParams --bail"},"files":["browser.js","index.js"],"keywords":["uri","url","whatwg"],"gitHead":"ebbb76344c06f84c823a02360eaf14f566fcb61e","bugs":{"url":"https://github.com/stevenvachon/universal-url/issues"},"homepage":"https://github.com/stevenvachon/universal-url#readme","_id":"universal-url@1.0.0-alpha","_shasum":"f52c0fee21997c4008f113052ee4795c094a05df","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"f52c0fee21997c4008f113052ee4795c094a05df","tarball":"http://registry-npm.ywwl.com/universal-url/download/universal-url-1.0.0-alpha.tgz","integrity":"sha512-lkuM/g3dNJUJbtzGpdStobVlu4lv819/NZviPomAEOsc4UTg9dHRGQTUsSZxyHnwpbPCmMroSL9z1xdbJvO61Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBDFQkj7ygirpXk60a8aMi0j62J4hIqXpRotXqWd9ZbVAiA9xX5qErBJWV9CcVXhzZJlrK3xmBVw7CnpL4dDxefWFQ=="}],"size":2508,"noattachment":false,"key":"/universal-url/-/universal-url-1.0.0-alpha.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/universal-url-1.0.0-alpha.tgz_1492810466310_0.7095070590730757"},"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":1492810466544,"_cnpm_publish_time":1492810466544,"dist-tags":{"latest":"2.0.0"}}