cloudconverter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i cloudconverter

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

5.99 kB

Total Files

6

Last publish

Collaborators

  • richienb