{
  "name": "magnet-uri",
  "description": "Parse a magnet URI and return an object of keys/values",
  "version": "2.0.1",
  "author": {
    "name": "Feross Aboukhadijeh",
    "email": "feross@feross.org",
    "url": "http://feross.org/"
  },
  "bugs": {
    "url": "https://github.com/feross/magnet-uri/issues"
  },
  "dependencies": {
    "thirty-two": "~0.0.1"
  },
  "devDependencies": {
    "tape": "2.x"
  },
  "homepage": "https://github.com/feross/magnet-uri",
  "keywords": [
    "magnet",
    "uri",
    "urn",
    "p2p",
    "peer-to-peer",
    "cryptolinks",
    "bittorrent",
    "webtorrent"
  ],
  "license": "MIT",
  "main": "index.js",
  "repository": {
    "type": "git",
    "url": "git://github.com/feross/magnet-uri.git"
  },
  "scripts": {
    "test": "tape test/*.js"
  },
  "testling": {
    "files": "test/*.js",
    "browsers": [
      "ie/9..latest",
      "chrome/25..latest",
      "firefox/20..latest",
      "safari/6..latest",
      "opera/15.0..latest"
    ]
  },
  "readme": "# magnet-uri [![travis](https://img.shields.io/travis/feross/magnet-uri.svg)](https://travis-ci.org/feross/magnet-uri) [![npm](https://img.shields.io/npm/v/magnet-uri.svg)](https://npmjs.org/package/magnet-uri) [![downloads](https://img.shields.io/npm/dm/magnet-uri.svg)](https://npmjs.org/package/magnet-uri) [![gittip](https://img.shields.io/gittip/feross.svg)](https://www.gittip.com/feross/)\n\n[![browser support](https://ci.testling.com/feross/magnet-uri.png)](https://ci.testling.com/feross/magnet-uri)\n\n### Parse a magnet URI and return an object of keys/values.\n\nAlso works in the browser with [browserify](http://browserify.org/)! This module is used by [WebTorrent](http://webtorrent.io).\n\n## install\n\n```\nnpm install magnet-uri\n```\n\n## usage\n\n```js\nvar magnet = require('magnet-uri')\n\n// \"Leaves of Grass\" by Walt Whitman\nvar uri = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337'\n\nvar parsed = magnet(uri)\nconsole.log(parsed.dn) // \"Leaves of Grass by Walt Whitman.epub\"\nconsole.log(parsed.infoHash) // \"d2474e86c95b19b8bcfdb92bc12c9d44667cfa36\"\n\n```\n\nThe `parsed` magnet link object looks like this:\n\n```js\n  {\n    \"xt\": \"urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36\",\n    \"dn\": \"Leaves of Grass by Walt Whitman.epub\",\n    \"tr\": [\n      \"udp://tracker.openbittorrent.com:80\",\n      \"udp://tracker.publicbt.com:80\",\n      \"udp://tracker.istole.it:6969\",\n      \"udp://tracker.ccc.de:80\",\n      \"udp://open.demonii.com:1337\"\n    ],\n\n    // added for convenience:\n    \"infoHash\": \"d2474e86c95b19b8bcfdb92bc12c9d44667cfa36\",\n    \"name\": \"Leaves of Grass by Walt Whitman.epub\",\n    \"announce\": [\n      \"udp://tracker.openbittorrent.com:80\",\n      \"udp://tracker.publicbt.com:80\",\n      \"udp://tracker.istole.it:6969\",\n      \"udp://tracker.ccc.de:80\",\n      \"udp://open.demonii.com:1337\"\n    ]\n  }\n```\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n",
  "readmeFilename": "README.md",
  "_id": "magnet-uri@2.0.1",
  "_shasum": "d331d3dfcd3836565ade0fc3ca315e39217bb209",
  "_from": "magnet-uri@^2.0.1",
  "_resolved": "https://registry.npmjs.org/magnet-uri/-/magnet-uri-2.0.1.tgz"
}
