Socket
Socket
Sign inDemoInstall

bittorrent-sync

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-sync

A simple wrapper for the BitTorrent Sync API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 16 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc