Git Product home page Git Product logo

node-calibre's People

Contributors

mrxyfir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-calibre's Issues

Find out path to calibre library

After a book has been added to calibre (calibredb command), for further conversion using calibre-convert command, the absolute path to imported book has to be specified.
The default calibre library path should be used/assumed,
how can it be determined from the calibre CLI tools?

Alternatively this wrapper could offer a method/other means for getting the library path โ€“
or automatically converting relative paths to absolute paths inside the library path.

Add methods for each Calibre binary / command

  • Methods for each command: calibre.db.*, calibre.ebookConvert, etc
    • calibre.db.add()
      • #8 Among returned data, supply array of duplicate books
  • Improve error checking by looking at the command's output and checking for specific values based on the command.
  • Return result object that contains the original full output string and also parsed data relevant to the command.
  • Each method takes relevant arguments, and not just the general args and options from run().

Convert Option Names

From camelCase to kebab-case.

This way instead of needing to do

calibre.run('calibredb list', [], { 'for-machine': null });

you could do

calibre.run('calibredb list', [], { forMachine: null });

calibredb add duplicates

By default calibredb add doesn't add books that already exists in calibre library (which is good).
However, in the script it has to be known sometimes (e.g. not further continuing).
It would be nice if the calibredb add callback gets an extra argument for an array of duplicate books.

WSL/Windows support

In WSL (Bash on Windows) shell, the binaries/commands can't be found by node-calibre (e.g. 'calibredb').

(node:9474) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Command failed: calibredb list --library-path ""
/bin/sh: 1: calibredb: not found
(node:9474) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.