Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
outputFormat
enum<string>

Config file

Available options:
babel.config.json,
.babelrc
presetEnv
boolean

@babel/preset-env — compile modern JS down to your targets

envTargets
string

targets

envModules
enum<string>

modules

Available options:
auto,
false,
commonjs
envUseBuiltIns
enum<string>

useBuiltIns

Available options:
false,
usage,
entry
envCorejs
string

corejs version

presetReact
boolean

@babel/preset-react — compile JSX

reactRuntime
enum<string>

runtime

Available options:
automatic,
classic
reactDevelopment
boolean

development — extra warnings + component stack traces

presetTypescript
boolean

@babel/preset-typescript — strip TS types

tsAllExtensions
boolean

Allow TSX syntax in .ts files (isTSX + allExtensions)

presetFlow
boolean

@babel/preset-flow — strip Flow types

plugins
enum<string>[]

Syntax / transform plugins

Available options:
@babel/plugin-transform-runtime,
@babel/plugin-transform-class-properties,
@babel/plugin-transform-private-methods,
@babel/plugin-transform-private-property-in-object,
@babel/plugin-syntax-dynamic-import,
@babel/plugin-proposal-export-default-from
pluginDecorators
boolean

@babel/plugin-proposal-decorators

decoratorsLegacy
boolean

Use legacy decorators (older Angular/MobX/TypeORM-style @decorator)

envTestNodeCurrent
boolean

Test env: target the current Node version (common Jest setup)

envProdRemoveConsole
boolean

Production env: strip console.* calls (babel-plugin-transform-remove-console)

includeComments
boolean

Include section comments

includeHeader
boolean

Include descriptive header comment

Response

Tool output

outputs
object
required
tool
string
required

The tool's slug, echoing the {slug} in the request path.

tool_version
string
required

Output-contract version for this tool.

credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

credits_remaining
integer | null
required

Credits left in the current monthly allowance, or null when metering is disabled.

request_id
string

Correlation id, also sent as x-request-id.