Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CLI client #33

Open
NightMachinery opened this issue Dec 9, 2018 · 3 comments
Open

Add a CLI client #33

NightMachinery opened this issue Dec 9, 2018 · 3 comments

Comments

@NightMachinery
Copy link

CLIs just are the best interfaces. I can automate them and integrate the service into bigger scripts, or just it interactively on any device regardless of the browser. (iOS, cough cough.)

@NightMachinery
Copy link
Author

Please:) I want to create an ebook from around 2000 chapters, it’s really not possible to do it by hand :( Can you give me some pointers on how to make a PR for a CLI interface?

@haroldtreen
Copy link
Owner

The server will not accept requests with more than 50 books - so you'd need to run the server on your own machine to make that work.

Once you have your own server running and tweaked to not have the 50 book limit you could set the BASE_URL to your local server EpubPress.BASE_URL = 'http://localhost:5000 or whatever.

Then you could use EpubPressJs.

cont EpubPress = require('epub-press-js');

const urls = [/*array of 2000 urls*/];
const ebook = EpubPress({ urls });
ebook.publish().then(() => { ebook.download() ));

@TangMonk
Copy link

The server will not accept requests with more than 50 books - so you'd need to run the server on your own machine to make that work.

Once you have your own server running and tweaked to not have the 50 book limit you could set the BASE_URL to your local server EpubPress.BASE_URL = 'http://localhost:5000 or whatever.

Then you could use EpubPressJs.

cont EpubPress = require('epub-press-js');

const urls = [/*array of 2000 urls*/];
const ebook = EpubPress({ urls });
ebook.publish().then(() => { ebook.download() ));

Does it support local url instead of http?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants