GithubHelp home page GithubHelp logo

derpymario / magnet2torrent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nadhirxz/magnet2torrent

0.0 0.0 0.0 96 KB

Convert magnet links to torrent files

License: MIT License

JavaScript 100.00%

magnet2torrent's Introduction

m2t

Convert magnet links to torrent files

Installation

$ npm install m2t -g

Usage

Usage: m2t [options] <magnet>

Convert magnet links to torrent files

Arguments:
  magnet                   full magnet uri or info hash only

Options:
  -V, --version            output the version number
  -o, --output <filename>  torrent file output
  -t, --timeout <timeout>  timeout in ms (default: 30000)
  -h, --help               display help for command

Examples

$ m2t -o great-content "magnet:?xt=urn:btih:EE492EE6766FE1968BDC86B7D214A428309ABC19&tr=http%3a%2f%2fbt1.archive.org%3a6969%2fannounce&ws=https%3a%2f%2farchive.org%2fdownload%2f&ws=http%3a%2f%2fia601509.us.archive.org%2f10%2fitems%2f&ws=http%3a%2f%2fia801509.us.archive.org%2f10%2fitems%2f"
#=> ✔ connecting to network
#=> ✔ finding peers
#=> ✔ getting metadata
#=> torrent saved as great-content.torrent

$ m2t 436e5f8b85a51d5545156e15cc144ba1144991ff
#=> ✔ connecting to peers
#=> ✔ getting metadata
#=> torrent saved as archlinux-2023.07.01-x86_64.iso.torrent

Build binaries

Clone this repository

$ git clone https://github.com/nadhirxz/magnet2torrent.git

Install dependencies

$ npm install
# Generate binaries for linux, mac os and windows
$ npm run package

# linux only
$ npm run package-linux

# mac os only
$ npm run package-mac

# windows only
$ npm run package-windows

License

MIT License

magnet2torrent's People

Contributors

nadhirxz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.