Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/moszeed/page-to-kindle
- Owner: moszeed
- License: mit
- Created: 2014-08-31T20:05:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-01T12:26:55.000Z (about 10 years ago)
- Last Synced: 2024-04-24T02:42:55.401Z (7 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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...');
});`