@michalbe
filebit-client byAutomated client for file download helper - filebit.pl
What?
Filebit-client allows to use filebit.pl in node.js environment.
API:
Filebit-client has only two methods:
- login(login, password, callback)
- getLink(search-term, options, callback):
How to use:
npm install filebit-client
then:
var fbc = ; // Log-in firstfbc;
To Do
- Support of multiple files in one request
- Fix timestamps in tests (sometimes tests fail because the date used in Nock to mock the server response is different than the one used to send the request)
Testing
To contribute to the project:
#clone the repo $ git clone git@github.com:michalbe/filebit-client.git$ cd filebit-client #install all the dependencies $ npm install #to run jshint: $ npm run lint #to run tests $ npm test
Tests & linter are hooked to commit (using precommit-hook), it's not possible tocommit if linter is not passing or there are failing tests. To commit anyway:
$ git commit -n