![]() ![]() It limits the size of output that can be received from a process, in this case one of Calibre's binaries. You should be aware of the maxBuffer property of the options object accepted by Node's child_process.exec().Same as run(), which builds a command string and passes it to exec(). Properties passed will override properties with the same name from execOptions.Will be merged with the execOptions object that was passed to the constructor.For example: calibredb list -for-machine -limit 10.It's essentially just a Promise-wrapped child_process.exec() that gets passed the execOptions from the constructor. This method should only be used if for some reason you need to build your own command string. Any CLI options for the ebook-convert command.įull path to the new file.The format (file extension) to convert input to.It's up to you to check the resolved result to determine if the command was successful. Due to how Calibre's command line tools work, most of the time the promise should resolve regardless of whether Calibre encountered an issue. ![]() Import -> -field "tags:tag1,tag2" -field "title:Some New Title".Ī promise that is rejected if the callback of Node's child_process.exec() has a value for error or stderr and resolves to the callback's stdout if no error occurred.
0 Comments
Leave a Reply. |