Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/moszeed/page-to-kindle

send any webpage to your kindle
https://github.com/moszeed/page-to-kindle

Last synced: about 20 hours ago
JSON representation

send any webpage to your kindle

Awesome Lists containing this project

README

        

#page-to-kindle
send any webpage to your kindle

####How it works
---
1. read the Page with [*node-readability*](https://github.com/luin/node-readability)
2. write content to pdf with [*phantomjs*](https://github.com/sgentle/phantomjs-node)
3. send pdf via Email ([*nodemailer*](https://github.com/andris9/Nodemailer)) to the Amazon Kindle convert Service

#####Usage example
---
var pageToKindle = require('pageToKindle');

var sendParams = {

mailOptions : {
to : '[email protected]'
},

//Nodemailer Transporter
transporter : {
service : 'Gmail',
auth : {
user : 'gmail-user-name',
pass : 'gmail-pass'
}
}
};

var sendUrl = pageToKindle.send("www.awesomewebsite.com", sendParams);
sendUrl.done(function() {
console.log('page is sent to kindle...');
});`