5.5.0 • Published 10 months ago

connect-sdk-nodejs v5.5.0

Weekly downloads
570
License
SEE LICENSE IN LI...
Repository
github
Last release
10 months ago

Worldline Connect Node.js SDK

Introduction

The Node.js SDK helps you to communicate with the Worldline Connect Server API. Its primary features are:

  • convenient JavaScript wrapper around the API calls,
  • authentication of all calls
  • logging support by proxying log calls to a custom user defined logger instance
  • validation of input and
  • a logfile obfuscater

See the Worldline Connect Developer Hub for more information on how to use the API.

Structure of this repository

This repository consists out of three main components:

  1. The source code of the SDK itself: /src
  2. The JSON schemas used to validate requests: /schemas
  3. Unit and integration tests: /__tests__

Requirements

Node.js 12 or higher is required.

Installation

From the folder where your package.json is located, run the following command to install the SDK:

npm i connect-sdk-nodejs

Building the repository

From the root of the project install all dependencies, then compile the code:

npm install
npm run build

Testing

There are two types of tests:

  1. Unit tests. These will work out-of-the-box.
    Run these tests as follows:

    npm run test:unit
  2. Integration tests. Before you can run these, you first need to copy file __tests__/config.json.dist to __tests__/config.json and replace all values as needed. If needed, a proxy property can be added with nested properties host, scheme (defaults to http), port (defaults to 3128) and credentials (optional, in the format <username>:<password>).
    Run these tests as follows:

    npm run test:integration

You can also run both types of tests together as follows:

npm run test
5.5.0

10 months ago

5.4.0

12 months ago

5.3.0

1 year ago

5.2.0

2 years ago

5.1.0

2 years ago

5.0.0

2 years ago

4.20.0

2 years ago

4.19.0

2 years ago

4.18.0

2 years ago

4.17.0

2 years ago

4.16.0

2 years ago

4.14.0

2 years ago

4.15.0

2 years ago

4.13.0

2 years ago

4.12.0

3 years ago

4.11.0

3 years ago

4.9.0

3 years ago

4.10.0

3 years ago

4.8.0

3 years ago

4.7.0

3 years ago

4.6.1

3 years ago

4.6.2

3 years ago

4.6.0

3 years ago

4.5.0

3 years ago

4.4.0

4 years ago

4.3.0

4 years ago

4.2.1

4 years ago

4.0.0

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

3.20.0

4 years ago

3.19.0

4 years ago

3.18.0

4 years ago

3.17.0

4 years ago

3.16.0

4 years ago

3.15.0

5 years ago

3.14.0

5 years ago

3.13.0

5 years ago

3.12.0

5 years ago

3.11.0

5 years ago

3.10.0

5 years ago

3.9.0

5 years ago

3.8.0

5 years ago

3.7.0

5 years ago

3.6.0

6 years ago

3.5.0

6 years ago

3.4.0

6 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.30.0

7 years ago

2.29.0

7 years ago

2.28.0

7 years ago

2.27.0

7 years ago

2.26.0

7 years ago

2.25.0

7 years ago

2.24.0

7 years ago

2.23.0

7 years ago

2.22.0

7 years ago

2.21.0

7 years ago

2.20.0

7 years ago

2.19.0

7 years ago

2.18.0

8 years ago

2.17.0

8 years ago

2.16.0

8 years ago

2.15.0

8 years ago

2.14.0

8 years ago

2.13.0

8 years ago

2.12.0

8 years ago

2.11.0

8 years ago

2.10.0

8 years ago

2.9.0

8 years ago

2.8.0

8 years ago

2.7.0

8 years ago

2.6.0

8 years ago

2.5.0

8 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago