Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including conversiontools with all npm packages installed. Try it out:

var conversiontools = require("conversiontools")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

conversiontools v1.0.0

JavaScript library to convert files using Conversion Tools API at

Conversion Tools API Node.js Client

Conversion Tools is an online service which offers fast and easy way to convert documents between different formats, like XML, Excel, PDF, Word, Text, CSV and others.

This Node.js Client allows to integrate the conversion of the files into your node.js applications. To convert the files Node.js Client uses the public Conversion Tools REST API.


yarn add conversiontools


npm install --save conversiontools


To use REST API - get API Token from the Profile page at

const ConversionClient = require('conversiontools');

// API Token from your Profile page at
const apiToken = 'put the api token here';

const conversion = new ConversionClient(apiToken);

  .run('convert.xml_to_csv', {
    filename: 'test.xml',
    timeout: 4000,
    outputFilename: 'test.xml.csv',
    options: {
      delimiter: 'tab',
  .then((filename) => {
    console.log('File downloaded to', filename);
  .catch(err => {
    console.log('Conversion error', err);


List of available Conversion Types and corresponding conversion options can be found on the Conversion Tools API Documentation page.


Licensed under MIT.

Copyright (c) 2018 Conversion Tools

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free