{"_id":"@c0b41/torrent","_rev":"2-ab36c45e4e7e8b21fc9e8ff01f903b10","name":"@c0b41/torrent","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@c0b41/torrent","version":"1.0.0","bin":{"torrent":"cli.js"},"description":"torrent from the command line","main":"index.js","author":{"name":"max ogden"},"license":"BSD","preferGlobal":true,"dependencies":{"concat-stream":"^1.4.8","create-torrent":"^3.11.1","human-format":"^0.3.0","minimist":"^1.1.1","parse-torrent":"^5.0.0","pretty-bytes":"^1.0.4","pretty-ms":"^1.1.0","pretty-seconds":"^0.1.3","single-line-log":"^0.4.1","torrent-stream":"^0.19.0"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/c0b41/torrent.git"},"bugs":{"url":"https://github.com/c0b41/torrent/issues"},"homepage":"https://github.com/c0b41/torrent","gitHead":"9f7ba12f161ab903cbe191f68b917bba4b7f0c2d","_id":"@c0b41/torrent@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"c0b41","email":"c0b41@yandex.com.tr"},"dist":{"integrity":"sha512-cD63wD26DAp9Obx/Ou4jrNLT5vPa/sw/xLFkHAo08BSGnPBvbQFdYMazF3WUpNw7rUkhljzAjcilGUtAuT+DjA==","shasum":"f8b16ee071892f8b009203031f8b3a26f03bcedf","tarball":"https://registry.npmjs.org/@c0b41/torrent/-/torrent-1.0.0.tgz","fileCount":7,"unpackedSize":32179,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbx2L0CRA9TVsSAnZWagAAMwYP/3LjkceIdX/IeiGv4kb1\nLi5w2TXv0c/XFJjpM1y4NjNB7fImNCIqisAgoVWxR5+LvZBrbWff9EX6SCM8\nwNwiHDJVfOil8KVPh9guLqfowH6et27g1A+ZTZgr3yww35DZTmWESTnBDxdL\ndWm7pDNo4Gf4Onp1qbog6rAdrvJ+b+gXjlglM0pkS6aySvlJIqvIO84cS9kC\noGpBAIs+TYwpRyJkq0oaaeobSEWVjqZaR8HPxO7EUW3bDDyBAo7DoMKGcwR4\nc8G3pGYfsNd2i1t2rxSUlbTS3ZMg7PrXX3qRoAcNDoITQPj8bBn6nh3NKdYl\nAcWRTQ/2K2HCYKGv9yRhRWOylz+fsnJYH0Vu7C7faANKp1xL5YruY9MCDgNI\nG66vdJsKuRV7cd6IgOmd8kYKg+yg4MtcWncTK53RguNmslfmIPpiG6Wni9Ee\nGDn7YADsUQeZVyPvnkZLophdB/FPBAcah2ubfRHoybCrOdu9N8sJ5cN9b7Ra\nNTTnVuRqJmjbrC9Hbf3AeoWZaAk9u8EMD9HyFYxLrPLQLXLGaPYf2hoaBKZ0\neBE8XjUmYWM27jejFxnpanNMOlSaAFzAiHsJUKLzUIjFCRk4eEWRtbfqVo6Z\nnBII+u+gqMzj0IeqBwW24JsyKx2j1iM3Y9D0aRVQ8dGMtxZoL2psxQLh7ii6\neZTz\r\n=33Vt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMxp74t5mVKrRiKRaoHxUnflipV4PGnp/rn6gd45C8MgIhANbGLhw42GNO/zypVXP4/HlNcRLUiZYRJ8Mm4mNsEeF6"}]},"maintainers":[{"name":"c0b41","email":"c0b41@yandex.com.tr"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/torrent_1.0.0_1539793651033_0.10400652122836718"},"_hasShrinkwrap":false,"deprecated":"Depraceted"}},"time":{"created":"2018-10-17T16:27:30.849Z","1.0.0":"2018-10-17T16:27:31.212Z","modified":"2022-04-04T21:23:55.450Z"},"maintainers":[{"name":"c0b41","email":"c0b41@yandex.com.tr"}],"description":"torrent from the command line","homepage":"https://github.com/c0b41/torrent","repository":{"type":"git","url":"git+https://github.com/c0b41/torrent.git"},"author":{"name":"max ogden"},"bugs":{"url":"https://github.com/c0b41/torrent/issues"},"license":"BSD","readme":"# torrent\n\n[![NPM](https://nodei.co/npm/torrent.png?global=true)](https://nodei.co/npm/torrent/)\n\nDownload torrents from the command line\n\n![](screenshot.png)\n\n## usage\n\n```\ntorrent <magnet link OR path to .torrent file>\n\n  Download a torrent from a magnet link to torrent file.\n\ntorrent create <directory OR file> {-o outfile.torrent}\n\n  Create a torrent file from a directory or file.\n\n  If an output file isn't specified with `-o`, the torrent file will be\n  written to stdout.\n\ntorrent seed <torrent file>\n\n  Seed a torrent file.\n\ntorrent info <torrent file>\n\n  Print information about a .torrent file to stdout as JSON.\n\ntorrent ls OPTIONS <torrent file>\n\n  List all the files in a .torrent file.\n\n  OPTIONS are like the `ls` command:\n\n    -s  Show file sizes in bytes alongside file paths.\n    -h  Show file sizes in human units when `-s` is on.\n\n```\n\n### download a torrent\n\ne.g. to download ubuntu 14.04 ISO\n\n```\ntorrent \"magnet:?xt=urn:btih:4d753474429d817b80ff9e0c441ca660ec5d2450&dn=Ubuntu+14.04+64+bit&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%2Fopen.demonii.com%3A1337\"\n```\n\nor via .torrent file:\n\n```\ntorrent ubuntu-14.04.iso.torrent\n```\n\nit will print progress:\n\n```\n$ torrent ubuntu-14.04.iso.torrent\n1 file(s) in torrent\nubuntu-14.04.iso\nConnected to 35/37 peers\nDownloaded 5.47 MB (1.09 MB/s) with 0 hotswaps\nUploaded 0 B (0 B/s)\n```\n\n### create a torrent\n\nYou can create a torrent file with `torrent create`:\n\n```\nmkdir xyz; echo beep > xyz/a.txt; echo boop > xyz/b.txt\ntorrent create xyz/ -o xyz.torrent\n```\n","readmeFilename":"readme.md"}