Grab free Packtpub free ebooks everyday
npm install node-packtpub-downloadDownload today's Deals of the Day from Packtpub.
1. Run npm install -g node-packtpub-download
2. To download, you can run node-pt --user example@gmail.com --password yourpassword
3. It will be downloaded to your current directory inside downloads directory
``
Usage: node-pt [options] [command]
Commands:
download [options] Download today's 'Deals of the Day' ebook
fetch Get today's free ebook data.
Options:
-h, --help output usage information
-V, --version output the version number
`
`
Usage: download [options]
Download today's 'Deals of the Day' ebook
Options:
-h, --help output usage information
-u, --user
-p, --password
-o, --outputDir
-f, --fileType [type] Your desired file type for the ebook. Only pdf, epub, and mobi supported. Default is pdf. Example: pdf,mobi,epub
`
Example:
``
node-pt download -u your@email.com -p yourpassword -o /somewhere/only/we/know -f mobi,epub,pdf
Example:
```
node-pt fetch