xyfir / node-calibre Goto Github PK
View Code? Open in Web Editor NEW๐ A Node wrapper for Calibre's command line tools. (Abandoned)
License: MIT License
๐ A Node wrapper for Calibre's command line tools. (Abandoned)
License: MIT License
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.
calibre.db.*
, calibre.ebookConvert
, etc
calibre.db.add()
args
and options
from run()
.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 });
Example: set_metadata's --field
.
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.
So instead of needing to do
calibre.run('calibredb list', [], { 'for-machine': null });
you could do
calibre.run('calibredb list', { 'for-machine': null });
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.
Support using child_process.spawn()
, and potentially replace child_process.exec()
entirely with child_process.spawn()
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.