1.0.3 • Published 3 years ago

ixirc v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

ixirc

Node.js module for ixirc api

Disclamer

This module does not intend to facilitate illegal files transfer. The author may not be taken responsible for any copyright infringement or illegal uses.

Usage

#!/usr/bin/env node

var ixirc = require('./src/ixirc.js')
  , start
  , end
  ;
ixirc.on(ixirc.events.progress, function(results) {
    console.log('progress');
    console.log(results.length + ' results found');
});
ixirc.on(ixirc.events.complete, function(results) {
    console.log('complete');
    console.log(results.length + ' total results found');
});
start = process.hrtime();
ixirc.search('test')
    .then(function(results) {
        end = process.hrtime(start);
        start = process.hrtime();
        console.log(end);
        return ixirc.search('test', true);
    })
    .then(function(results) {
        end = process.hrtime(start);
        console.log(end);
        console.log('done');
        return ixirc.clearCache();
    })
    .then(function() {
        process.exit();
    })
    .catch(function(err) {
        console.error(err);
        err.stack && console.error(err.stack);
    });
1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.4

6 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago