Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

radekstepan/nzb-grabber-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Download/grab binary posts from NNTP (Usenet) servers using Node.js.

Codeship Status for radekstepan/nzb-grabber-js

$ npm install nzb-grabber-js

Pass an NZB file buffer which will be parsed and all files and their chunks downloaded. Chunks arrive in order so you can append them to an existing file. When all files are downloaded done is set.

NzbGrabber = require 'nzb-grabber-js'

client = new NzbGrabber
    'host': 'news.usenetserver.com'
    'port': 119,
    'user': 'username'
    'pass': 'password'
    'conn': 4

client.grab nzbFile, (err, filename, chunk, done) ->
    fs.appendFile './downloads/' + filename, chunk, (err) ->
        console.log 'All files downloaded' if done

Have a look into ./example/watch.coffee.

Bitdeli Badge

About

Download/grab binary posts from NNTP (Usenet) servers using Node.js

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published