cloudconverter
v1.0.0
Published
A simplified interface to the CloudConvert API.
Downloads
4
Maintainers
Readme
CloudConverter
A simplified interface to the CloudConvert API.
Install
npm install cloudconverter
Usage
const cloudConverter = require("cloud-converter");
(async () => {
await cloudConverter("input.png", "output.jpg", { apiKey: ... }); // Convert PNG to JPG
})();
API
cloudConverter(filename, output, options)
filename
Type: string
The input filename.
output
Type: string
The output filename.
options
Type: object
apiKey
Type: string
The CloudConvert API key.
sandbox
Type: boolean
Default: false
Use sandbox mode.
cloudConverter.stream(input, output, format, options)
input
Type: ReadableStream
The input stream.
output
Type: WritableStream
The output stream.
format
Type: string
The format to convert to.
options
Type: object
See options.