Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xdcc

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xdcc - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

14

example.js

@@ -5,5 +5,3 @@ var irc = require('./lib/xdcc').irc;

var user = 'desu' + Math.random().toString(36).substr(7, 3);
var hostUser = 'Doki|Kotomi';
var pack = 10;
var meta, bar;
var hostUser = 'Doki|Kotomi', pack = 10, progress;

@@ -23,7 +21,5 @@ console.log('Connecting...');

client.on('xdcc-connect', function(_meta) {
meta = _meta;
client.on('xdcc-connect', function(meta) {
console.log('Connected: ' + meta.ip + ':' + meta.port);
bar = new ProgressBar('Downloading... [:bar] :percent, :etas remaining', {
progress = new ProgressBar('Downloading... [:bar] :percent, :etas remaining', {
incomplete: ' ',

@@ -37,3 +33,3 @@ total: meta.length,

client.on('xdcc-data', function(received) {
bar.tick(received - last);
progress.tick(received - last);
last = received;

@@ -48,3 +44,3 @@ });

if (to == user && from == hostUser) {
console.log("NOTICE " + message);
console.log("[notice]", message);
}

@@ -51,0 +47,0 @@ });

@@ -5,2 +5,5 @@ var irc = require('irc')

module.exports.irc = irc;
if (irc.Client.prototype.getXdcc) return;
function uint32ToIP(n) {

@@ -63,3 +66,3 @@ var byte1 = n & 255

client.write(sendBuffer);
self.emit('xdcc-data', received);
self.emit('xdcc-data', received, details);
});

@@ -74,3 +77,3 @@

file.end();
self.emit('xdcc-error', err);
self.emit('xdcc-error', err, details);
});

@@ -84,2 +87,1 @@ });

module.exports.irc = irc;
{
"name": "xdcc",
"version": "0.2.0",
"version": "0.2.1",
"author": "Justin Li <jli@j-li.net>",

@@ -10,4 +10,4 @@ "description": "A simple xdcc client",

"dependencies": {
"irc": "~0.3.6"
"irc": ">=0.3.0"
}
}
node-xdcc
=========
[![npm version](http://img.shields.io/npm/v/xdcc.svg)](https://www.npmjs.org/package/xdcc)
Monkey-patches `node-irc` to do xdcc file transfers.

@@ -5,0 +7,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc