1.0.0 • Published 4 years ago

cloudconverter v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

CloudConverter Travis CI Build Status

A simplified interface to the CloudConvert API.

NPM Badge

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.