{
  "name": "read-torrent",
  "version": "0.2.0",
  "description": "read and parse a torrent from a resource",
  "repository": {
    "type": "git",
    "url": "git://github.com/mafintosh/read-torrent.git"
  },
  "dependencies": {
    "bncode": "~0.2.3",
    "request": "~2.16.2"
  },
  "bin": {
    "read-torrent": "./cli.js"
  },
  "readme": "# read-torrent\n\nread and parse a torrent from a resource\n\n\tnpm install read-torrent\n\n# usage\n\n``` js\nvar readTorrent = require('read-torrent');\n\nreadTorrent('http://my-server.com/file.torrent', function(err, torrent) {\n\t// we loaded a torrent from a server\n});\n\nreadTorrent('mydir/file.torrent', function(err, torrent) {\n\t// we loaded a torrent from a file\n});\n```\n\nThe torrent result looks like this\n\n``` js\n{\n\tname: 'torrent name',\n\tcreated: new Date(...),\n\tannounce: [\n\t\t// list of annouce urls\n\t],\n\tinfoHash: 'infoHash as a hex string',\n\tfiles: [{\n\t\tname: 'name of file',\n\t\tpath: 'suggested file path',\n\t\toffset: absoluteOffset,\n\t\tlength: lengthOfFile\n\t}],\n\tpieceLength: lengthOfAPiece,\n\tpieces: [\n\t\t// list of sha1 hex strings\n\t]\n}\n```\n\n# command-line interface\n\nthere is also a command-line interface available if you install it with `-g`\n\n\tnpm install -g read-torrent\n\nthis installs a program called `read-torrent` that you simply pass a torrent file or url\n\n\tread-torrent http://my-server.com/file.torrent\n\nthis will print all meta info of the torrent file to the terminal\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/mafintosh/read-torrent/issues"
  },
  "homepage": "https://github.com/mafintosh/read-torrent",
  "_id": "read-torrent@0.2.0",
  "_shasum": "27310fd29d13ed1ad00ed65be10a1acb9f37804d",
  "_from": "read-torrent@^0.2.0",
  "_resolved": "https://registry.npmjs.org/read-torrent/-/read-torrent-0.2.0.tgz"
}
