0.1.23 • Published 2 years ago
@freeconvert/freeconvert-node v0.1.23
Node.js client for the FreeConvert API
A Node.js client for the FreeConvert API. For full details of the FreeConvert API, see the API docs.
Installation
$ npm i @freeconvert/freeconvert-node
Usage
Initialising the client
To initialise the client, you must provide:
- An access token.
- The environment that this token is for (see below for a list of available environments).
Available Environments
LIVE
SANDBOX
/**
* Load as ESM module:
*/
import FreeConvert from "@freeconvert/freeconvert-node";
import { Environments } from "@freeconvert/freeconvert-node/lib/constants";
// Initialise the client
const client = FreeConvert(
process.env.FREE_CONVERT_API_KEY,
Environments.SANDBOX,
"USER_AGENT", // Optional
);
/**
* or via require:
*/
const FreeConvert = require("@freeconvert/freeconvert-node");
const constants = require("@freeconvert/freeconvert-node/lib/constants");
// Initialise the client
const client = FreeConvert(
process.env.FREE_CONVERT_API_KEY,
constants.Environments.SANDBOX,
"USER_AGENT", // Optional
);
0.1.21
2 years ago
0.1.22
2 years ago
0.1.23
2 years ago
0.1.20
2 years ago
0.1.17
3 years ago
0.1.18
3 years ago
0.1.19
3 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.12
3 years ago
0.1.13
3 years ago
0.1.14
3 years ago
0.1.15
3 years ago
0.1.16
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.9
3 years ago
0.1.4
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago