1.0.3 • Published 1 year ago

@shortloop/node-sdk-sample-all v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Shortloop SDK for Node

@shortloop/node provides client implementation of Shortloop SDK for express based Node applications.

Requirements

Current SDK version requires Node v16 or higher.

Installation

@shortloop/node can be installed like any other npm package through npm:

$ npm install @shortloop/node

Usage

  1. Once the package is installed, you can import the library using import or require approach:

    import ShortloopSDK from '@shortloop/node' OR const ShortloopSDK = require('@shortloop/node')

  1. Initialize the sdk
    Example:

    const app = express();
    const sdk = ShortloopSDK.init({
        url: 'http://localhost:8080',
        applicationName: 'test-service-node',
        loggingEnabled: true (optional),
    });
    app.use(express.json()); //any other middlewares
    app.use(sdk.capture());
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago