0.1.23 • Published 5 months 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
5 months ago
0.1.22
5 months ago
0.1.23
5 months ago
0.1.20
1 year ago
0.1.17
2 years ago
0.1.18
2 years ago
0.1.19
2 years ago
0.1.10
2 years ago
0.1.11
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.14
2 years ago
0.1.15
2 years ago
0.1.16
2 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.9
2 years ago
0.1.4
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago