Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including magnet2torrenturl with all npm packages installed. Try it out:

var magnet2torrenturl = require("magnet2torrenturl")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

magnet2torrenturl v2.1.3

convert magnet link to torrent

magnet2torrenturl

conver magnet link to torrent

usage

  1. you can get magnet link from website like http://www.torrentkitty.me,and search anything you like.Click detail button to get magnet link
  2. npm install magnet2torrenturl --save
  3. coding
var magnet2torrent = require('magnet2torrent')
var magnetInfo = magnet2torrent('magnet:?xt=urn:btih:A74085E6F278818C7B28A4D8BEAB2C6806E03298&dn=NHDT469 プチ裸出 VOL.8 立花里子&tr=udp://tracker.openbittorrent.com:80&tr=udp://tracker.publicbt.com:80&tr=udp://tracker.ccc.de:80&tr=udp://tracker.publicbt.com:80/announce');
console.log(magnetInfo['name'])//name indicate the torrent name
console.log(magnetInfo['torrentUrl']) //you can copy torrent url and paste in browser to download the torrent

develop

  1. npm install -g mocha
  2. npm test
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free