healthenviron-backend

1.0.6 • Public • Published

Cornerstonesln

Tools Node.js Backend

A Node.js toolkit for CORNERSTONE Blockchain Solutions S.A.S Microservice for developing micro backend or Lambda Functions based pattern microservices.

Installation

npm install --save @cornerstonesln/tools-nodejs-backend

Auth

Auth functions.

Connect MariaDB

MariaDB connection functions.

Console Logger

Standard console logger.

Environment Variables:

process.env desc values defaults
LOG_LEVEL Log Level Threshold DEBUG, INFO, WARN, ERROR, FATAL WARN

Example:

const logger = require('@cornerstonesln/tools-nodejs-backend').logger;

logger.d('This is a DEBUG Log')
logger.i('This is an INFO Log')
logger.w('This is a WARN Log')
logger.e('This is an ERROR Log')
logger.f('This is a FATAL Log', new Error('Node Error'))

Utils

Various utility functions used throughout microservices codebase.

/healthenviron-backend/

    Package Sidebar

    Install

    npm i healthenviron-backend

    Weekly Downloads

    3

    Version

    1.0.6

    License

    Apache-2.0

    Unpacked Size

    57 kB

    Total Files

    14

    Last publish

    Collaborators

    • dtjeda