bittorrent-sync
    Overview
    Discussions
    Alternatives
    Reviews
    Code
    Tutorials
    Playground
    Chat
    Versions

bittorrent-sync

A simple wrapper for the BitTorrent Sync API

0.0.3  •  Updated 6 years ago  •  by Yannick Croissant  •  Unknown License

Node BitTorrent Sync

NPM version Build Status Dependency Status Coverage Status Code Climate

A simple wrapper for the BitTorrent Sync API.

Installation

$ npm install bittorrent-sync

Usage

var BTSync = require('bittorrent-sync');

var btsync = new BTSync({
  host: 'localhost',
  port: 8888,
  username: 'myusername',
  password: 'mypassword',
  timeout: 10000
});

btsync.getFolders(function(err, data) {
  if (err) throw err;
  console.log(data);
});

btsync.addFolder({
  dir: '/btsync/data/folder1'
}, function(err, data) {
    if (err) throw err;
    console.log(data);
});

Available methods

  • getFolders
  • addFolder
  • removeFolder
  • getFiles
  • setFilePrefs
  • getFolderPeers
  • getSecrets
  • getFolderPrefs
  • setFolderPrefs
  • getFolderHosts
  • setFolderHosts
  • getPrefs
  • setPrefs
  • getOs
  • getVersion
  • getSpeed
  • shutdown

Full API documentation can be found on the BitTorrent Sync Website

License

Node BitTorrent Sync is licensed under the MIT License.

Bitdeli Badge

Popularity

Weekly Downloads
2
Stars
22

Maintenance

Development

Last ver 6 years ago
Created 6 years ago
Last commit 6 years ago
4 days between commits

Technology

Node version: null
0 unpacked

Compliance

License Unknown
Not OSI Approved
0 vulnerabilities

Contributors

2 contributors
Yannick Croissant
Maintainer, 54 commits
Works at algolia
voz
2 commits

Tags

bittorrent
btsync
api
p2p
peer2peer
Ready for the next level?
Join Openbase's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookLinkedIn
© 2020 Devstore, Inc.