0.0.10 • Published 3 years ago

wtorrent v0.0.10

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

wTorrent

!! Development in progress : don't use in production

Wrapper for torrent server compatible with :

  • rTorrent
  • Transmission

Usage

const wTorrent = require('wtorrent');
const client = wTorrent({
  client: 'wtorrent-rtorrent' || 'wtorrent-transmission', // One of
  host: '127.0.0.1',
  port: 80,
  endpoint: '/RPC2',
  user: 'user',
  password: 'password',
});

// Get all
await client.get();

//Get one 
await client.getOne(hash);

// Interact
await client.play(hash);
await client.pause(hash);
await client.remove(hash);

//Get files
await client.getFiles(hash);

//Add torrent file
await client.createFromFile(filePath);
await client.createFromBuffer(Buffer)

You need install wtorrent-rtorrent or wtorrent-transmission according to torrent server

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago