@djaty/djaty-nodejs
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.3 • Public • Published

    Djaty NodeJS SDK

    Installation

    $ npm install @djaty/djaty-nodejs

    Usage

    Quick Start

    You can start using Djaty NodeJS SDK with the default configuration by just including it at the root app file and passing the apiKey and apiSecret attributes as the following example:

    const djaty = require('@djaty/djaty-nodejs');
    
    djaty.init({
      apiKey: 'API_KEY',
      apiSecret: 'API_SECRET'
    });

    To use the NodeJS SDK inside Express and Koa based applications, please take a look at Official NodeJS SDK Docs

    Development

    Install dependencies

    $ npm install

    Build

    $ npm run build

    Run tests

    $ npm run test

    Hints

    • Using console log directly inside the SDK logic will add the concole timeline item to the active domain which will always be djatyInternalErrorsDomain and not the domain of the request djatyReqWrapDomain (Which the req and res objects are added to).

    Install

    npm i @djaty/djaty-nodejs

    DownloadsWeekly Downloads

    79

    Version

    1.1.3

    License

    BSD-3-Clause

    Unpacked Size

    199 kB

    Total Files

    145

    Last publish

    Collaborators

    • avatar
    • avatar