Skip to content
frms-coe-lib / 3.0.0

frms-coe-lib 3.0.0

Install from the command line:
Learn more about npm packages
$ npm install @frmscoe/frms-coe-lib@3.0.0
Install via package.json:
"@frmscoe/frms-coe-lib": "3.0.0"

About this version

frms-coe-lib

GitHub Workflow Status (with event) GitHub package.json version (subfolder of monorepo) GitHub

FRMS Center of Excellence package library.

Installation

A personal access token is required to install this repository. For more information read the following. https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages#about-scopes-and-permissions-for-package-registries

Thereafter you can run

npm install @frmscoe/frms-coe-lib

Usage

// Import functionality and types
import { RedisConfig, CreateDatabaseManager, DatabaseManagerInstance, ManagerConfig, TransactionHistoryDB} from "@frmscoe/frms-coe-lib/lib";

// Populate the Config for redis and transactionHistory
const transactionHistoryManager: DatabaseManagerInstance<ManagerConfig> =
  await CreateDatabaseManager({
    redisConfig: {
      db: 0,
      host: "localhost",
      password: "",
      port: 6379,
    },
    transactionHistory: {
      certPath: "/PATH/TO/CERT",
      databaseName: "transactionHistory",
      user: "admin",
      password: "",
      url: "https://arango.development",
    },
  });

  // Execute redis/transactionHistory queries
  await transactionHistoryManager.getTransactionPacs008('1234567890-4e48-8f50-fc52942b3425')

Details


Assets

  • frms-coe-lib-3.0.0.tgz

Download activity

  • Total downloads 2,212
  • Last 30 days 0
  • Last week 0
  • Today 0