nkj

node-kickass-json

Query for torrents at Kickass.to with Node.js.

Showing:

Popularity

Downloads/wk

9

GitHub Stars

3

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

1

Size (min+gzip)

10.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-kickass-json NPM version Build Status

NPM

Query for torrents at Kickass.to with Node.js.

Installation

Add node-kickass-json to your existing Node.js project.

npm install node-kickass-json --save

Usage

See examples for more usage details.

Built as a Fluent Interface. Also known as method chaining, as used in jQuery. Fork of node-kickass by @Glavin001

var Kickass = require('node-kickass-json');

var k = new Kickass()
.setQuery('Almost Human')   // Set search Query parameter
.run(function(error, data) {
  /*
  this  {context} => Current Context is set to be `k`.
  error  {error} => An Error object representing the error encountered
  data    {array} => An array of Torrent.
  */
  if (error === null) {
    // No errors occured.
    console.log(data.length, "results");
    console.log(
      errors,     // Error object, will be null if no error
      data       // Array of Torrent read from this `run`.
      );
  } else {
    // An error occurred.
    console.log(error, "error");
  }
})

Functions

  • constructor
var k = new Kickass()
  • setQuery
k.setQuery("Search Name")
  • setSort
k.setSort({
  field: "seeders",
  sorder: "desc"
});
  • run
k.run(function(error, data) {
            //console.log(data);
            if (error === null && data !== null) {
                    done();
            }
        });

Disclaimer

There are obvious legal issues, with downloading copyrighted material you do not have a license for. We do not endorse such use cases and take no responsibility for the use people make of it.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial